Confirmed users
1,022
edits
| Line 100: | Line 100: | ||
== Sample call == | == Sample call == | ||
GET / | GET /announcements/firefox/AndroidARMv7/18?idle=5 | ||
Accept-Language: en_US | Accept-Language: en_US | ||
| Line 106: | Line 106: | ||
HTTP 200 | HTTP 200 | ||
{" | {"announce":[{ | ||
"id": "12345678", | "id": "12345678", | ||
"url": "https://campaigns.mozilla.org/redirect | "url": "https://campaigns.mozilla.org/redirect/9j2q98fdqjdaff3ar", | ||
"title": "Get awesome stuff", | "title": "Get awesome stuff", | ||
"text": "It's awesome" | "text": "It's awesome" | ||
| Line 115: | Line 115: | ||
At this point the client will display an Android notification, which on click will open the URL in Firefox. | At this point the client will display an Android notification, which on click will open the URL in Firefox. | ||
GET /redirect | GET /redirect/9j2q98fdqjdaff3ar | ||
Which should respond with: | Which should respond with: | ||