WebAPI/SimplePush: Difference between revisions

Jump to navigation Jump to search
Line 132: Line 132:
   curl -X PUT --data 'version=5' 'http://mypushserver.com/notificaton/forUserBobAndroidFirefox'
   curl -X PUT --data 'version=5' 'http://mypushserver.com/notificaton/forUserBobAndroidFirefox'
   curl -X PUT --data 'version=5' 'http://mypushserver.com/notificaton/forUserBobBMWBoombox'
   curl -X PUT --data 'version=5' 'http://mypushserver.com/notificaton/forUserBobBMWBoombox'
How you associate endpoints to a given user is out of scope for this. You could have your own UserID that you use to map endpoints. Your client app could send both the old and new endpoints for an update, and you swap them in your data store.


== DOM Interface ==
== DOM Interface ==
Confirmed users
1,021

edits

Navigation menu