canmove, Confirmed users
640
edits
No edit summary |
|||
| Line 37: | Line 37: | ||
== Client API == | == Client API == | ||
=== /announce === | === /announce === | ||
GET /announce/<channel>/<version>/<platform> | GET /announce/1/<product>/<channel>/<version>/<platform> | ||
Accept-Language: <comma-separated list of acceptable languages> | Accept-Language: <comma-separated list of acceptable languages> | ||
On a successful request, when there is an available campaign, this will return a JSON array of objects containing all needed information required to display a user notification. | On a successful request, when there is an available campaign, this will return a JSON array of objects containing all needed information required to display a user notification. | ||
The <code>1</code> in the path is a version identifier for this protocol. The current version, as described in this document, is <code>1</code>. | |||
<code>product</code> is a broad identifier for the product being targeted. The current allowed value is simply <code>android</code>, but one can imagine <code>desktop</code>, <code>firefoxos</code>, or <code>metro</code> as additions. | |||
<code>channel</code> is one of <code>firefox</code>, <code>beta</code>, <code>aurora</code>, <code>nightly</code>, or <code>dev</code>. | <code>channel</code> is one of <code>firefox</code>, <code>beta</code>, <code>aurora</code>, <code>nightly</code>, or <code>dev</code>. | ||