WebAPI/SimplePush: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 153: Line 153:
=== Client check for updates ===
=== Client check for updates ===


<i>pushEndpoint</i>/update
These query parameters are required with each un-registration:
* pushRequestID
** <i>pushRequestID</i> is the query parameter name.
** The value of pushRequestID must be the result returned to the client as a result of calling register().
* Version
** <i>version</i> is the query parameter name.
** The value of version is the most current version number of the object referenced by pushRequestID
Example:
<pre>
  POST http://push.mozilla.org/update?pushRequestID=<pushRequestID>&version=<version>
</pre>
If the request succeeds, the server responds with a 200 OK HTTP status code and the following JSON:
<pre>
// tbd
{
  "result": {}
}
</pre>
</pre>


Confirmed users
1,031

edits

Navigation menu