WebAPI/SimplePush: Difference between revisions

Line 208: Line 208:


=== Fetch updates ===
=== Fetch updates ===
==== GET /v1/update ====
==== GET /v1/update/ ====
Return a list of known ChannelIDs and current versions. By default, this will return a list of ALL channels and known versions.  
Return a list of known ChannelIDs and current versions. By default, this will return a list of ALL channels and known versions.  


Line 224: Line 224:


   {    // An association of ChannelIDs and versions that have changed  
   {    // An association of ChannelIDs and versions that have changed  
       // since the last time the UA called /update.
       // since the last time the UA called /update/.
     "updates": [{"channelID": "id",  
     "updates": [{"channelID": "id",  
                 "version": "XXX"}, ...],  
                 "version": "XXX"}, ...],  
Line 241: Line 241:
===== Example =====
===== Example =====


  GET http://push.m.o/v1/update
  GET http://push.m.o/v1/update/
  ---
  ---
  {"updates": [{"channelID":"1ced595d7f6c9f60cc5c9395dc6b72aa7e1a69a7","version":"42"},
  {"updates": [{"channelID":"1ced595d7f6c9f60cc5c9395dc6b72aa7e1a69a7","version":"42"},
Confirmed users
1,018

edits