WebAPI/SimplePush: Difference between revisions

Jump to navigation Jump to search
no edit summary
(remove api key)
No edit summary
Line 139: Line 139:
<pre>
<pre>
   POST http://push.mozilla.org/unregister?pushRequestID=<pushRequestID>
   POST http://push.mozilla.org/unregister?pushRequestID=<pushRequestID>
</pre>
If the request succeeds, the server responds with a 200 OK HTTP status code and the following JSON:
<pre>
// tbd
{
  "result": {}
}
</pre>
=== 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>
</pre>


Confirmed users
1,031

edits

Navigation menu