Connected Devices/Projects/Project Link/Taxonomy: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(added REST API contents)
 
(→‎WebPush: getter)
Line 53: Line 53:
** PUT http://localhost:3000/api/v1/channels/set {"select": {"id": "setter:resource.webpush@link.mozilla.org"}, "value": {"Json": {“resources”:[“res1”, “res2”]}}}
** PUT http://localhost:3000/api/v1/channels/set {"select": {"id": "setter:resource.webpush@link.mozilla.org"}, "value": {"Json": {“resources”:[“res1”, “res2”]}}}
* Get current subscriptions
* Get current subscriptions
** PUT http://localhost:3000/api/v1/channels/set {"select": {"id": "getter:subscription.webpush@link.mozilla.org"}, "value": {"Json": {}}}
** PUT http://localhost:3000/api/v1/channels/get {"select": {"id": "getter:subscription.webpush@link.mozilla.org"}, "value": {"Json": {}}}
* Get current resources receiving notifications on
* Get current resources receiving notifications on
** PUT http://localhost:3000/api/v1/channels/set {"select": {"id": "getter:resource.webpush@link.mozilla.org"}, "value": {"Json": {}}}
** PUT http://localhost:3000/api/v1/channels/get {"select": {"id": "getter:resource.webpush@link.mozilla.org"}, "value": {"Json": {}}}
* Trigger notification
* Trigger notification
** PUT http://localhost:3000/api/v1/channels/set {"select": {"id": "setter:notify.webpush@link.mozilla.org"}, "value": {"Json": {“resource”:“res1”,”message”:”push_message_data”}}}
** PUT http://localhost:3000/api/v1/channels/set {"select": {"id": "setter:notify.webpush@link.mozilla.org"}, "value": {"Json": {“resource”:“res1”,”message”:”push_message_data”}}}

Revision as of 21:37, 30 March 2016

Taxonomy Documentation

Github Link: http://fxbox.github.io/taxonomy/doc/foxbox_taxonomy/index.html

Current REST API Examples

Account

Service List

Time

Camera

Tags

Recipe

  • Send Recipe
  • List available Recipes

WebPush