CloudServices/Roadmaps/Campaign-Manager: Difference between revisions

Jump to navigation Jump to search
Line 100: Line 100:


== Sample call ==
== Sample call ==
  GET /campaigns/firefox/AndroidARMv7/18?idle=5
  GET /announcements/firefox/AndroidARMv7/18?idle=5
  Accept-Language: en_US
  Accept-Language: en_US


Line 106: Line 106:


  HTTP 200
  HTTP 200
  {"snippets":[{
  {"announce":[{
     "id": "12345678",
     "id": "12345678",
     "url": "https://campaigns.mozilla.org/redirect/en_US/9j2q98fdqjdaff3ar",
     "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/en_US/9j2q98fdqjdaff3ar
  GET /redirect/9j2q98fdqjdaff3ar


Which should respond with:
Which should respond with:
Confirmed users
1,022

edits

Navigation menu