{"__v":2,"_id":"57058ea9ad5e9d0e0059c1cd","category":{"project":"570587cb5c43780e003e57f8","version":"570587cb5c43780e003e57fb","_id":"570587cc5c43780e003e57fc","__v":0,"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":{"__v":3,"_id":"570587cb5c43780e003e57fb","hasDoc":true,"hasReference":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"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-06T22:33:13.979Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<iq to=\\\"localhost\\\" type=\\\"set\\\" id=\\\"uuid V1 arbitrary id\\\" xmlns:stream=\\\"http://etherx.jabber.org/streams\\\" from=\\\"UUID:::at:::meshblu.octoblu.com/TOKEN\\\">\\n  <request>\\n    <metadata>\\n      <jobType>RegisterDevice</jobType>\\n    </metadata>\\n    <rawData>{\\\"type\\\" : \\\"device:generic\\\"}</rawData>\\n  </request>\\n</iq>\",\n      \"language\": \"xml\",\n      \"name\": \"RegisterDevice\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"uuid\\\": \\\"some-new-uuid\\\",\\n  \\\"token\\\": \\\"some-new-token\\\",\\n  \\\"type\\\": \\\"device:generic\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Response\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"register","type":"basic","title":"Register"}
[block:code] { "codes": [ { "code": "<iq to=\"localhost\" type=\"set\" id=\"uuid V1 arbitrary id\" xmlns:stream=\"http://etherx.jabber.org/streams\" from=\"UUID@meshblu.octoblu.com/TOKEN\">\n <request>\n <metadata>\n <jobType>RegisterDevice</jobType>\n </metadata>\n <rawData>{\"type\" : \"device:generic\"}</rawData>\n </request>\n</iq>", "language": "xml", "name": "RegisterDevice" } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"uuid\": \"some-new-uuid\",\n \"token\": \"some-new-token\",\n \"type\": \"device:generic\"\n}", "language": "json", "name": "Response" } ] } [/block]