{"_id":"57058e815aa9280e00b3009a","category":{"_id":"570587cc5c43780e003e57fc","__v":0,"version":"570587cb5c43780e003e57fb","project":"570587cb5c43780e003e57f8","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-06T22:03:56.002Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"parentDoc":null,"project":"570587cb5c43780e003e57f8","user":"5564f227f0f70f0d00a9ab20","version":{"_id":"570587cb5c43780e003e57fb","hasReference":true,"__v":3,"hasDoc":true,"project":"570587cb5c43780e003e57f8","createdAt":"2016-04-06T22:03:55.859Z","releaseDate":"2016-04-06T22:03:55.859Z","categories":["570587cc5c43780e003e57fc","570587fdcaeb1c0e00ce8149","57213ff4e5c07d0e008bf3bf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":3,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-06T22:32:33.408Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<iq to=\\\"hostname\\\" type=\\\"get\\\">\\n  <request>\\n    <metadata>\\n      <toUuid>The device you are modifying</toUuid>\\n      <jobType>CreateSubscription</jobType>\\n    </metadata>\\n    <raw-data>{\\n      \\\"subscriberUuid\\\" : '',\\n      \\\"emitterUuid\\\": '',\\n      \\\"type\\\": 'message.received'\\n    }</raw-data>\\n  </request>\\n</iq>\",\n      \"language\": \"xml\",\n      \"name\": null\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \":::at:::TYPES: [\\n    'broadcast.received'\\n    'broadcast.sent'\\n    'configure.received'\\n    'configure.sent'\\n    'message.received'\\n    'message.sent'\\n  ]\",\n      \"language\": \"coffeescript\",\n      \"name\": \"Subscription Types\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Response\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"subscribe","type":"basic","title":"Subscribe"}
[block:code] { "codes": [ { "code": "<iq to=\"hostname\" type=\"get\">\n <request>\n <metadata>\n <toUuid>The device you are modifying</toUuid>\n <jobType>CreateSubscription</jobType>\n </metadata>\n <raw-data>{\n \"subscriberUuid\" : '',\n \"emitterUuid\": '',\n \"type\": 'message.received'\n }</raw-data>\n </request>\n</iq>", "language": "xml", "name": null } ] } [/block] [block:code] { "codes": [ { "code": "@TYPES: [\n 'broadcast.received'\n 'broadcast.sent'\n 'configure.received'\n 'configure.sent'\n 'message.received'\n 'message.sent'\n ]", "language": "coffeescript", "name": "Subscription Types" } ] } [/block] [block:code] { "codes": [ { "code": "{\n}", "language": "json", "name": "Response" } ] } [/block]