{"_id":"5567479f77c15523002fd58f","project":"5564f26a1fd04c0d00dc9aaa","category":{"_id":"556742f87acd550d0075ead1","pages":["5567479f77c15523002fd58f","556747d977c15523002fd591","556747fc1c38390d006980ae","556748237acd550d0075eafd"],"project":"5564f26a1fd04c0d00dc9aaa","__v":4,"version":"5564f26a1fd04c0d00dc9aad","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-28T16:31:52.010Z","from_sync":false,"order":8,"slug":"examples","title":"Examples"},"parentDoc":null,"user":"5564f227f0f70f0d00a9ab20","version":{"_id":"5564f26a1fd04c0d00dc9aad","project":"5564f26a1fd04c0d00dc9aaa","__v":15,"createdAt":"2015-05-26T22:23:38.671Z","releaseDate":"2015-05-26T22:23:38.671Z","categories":["5564f26b1fd04c0d00dc9aae","556741d17acd550d0075eaca","556741d87acd550d0075eacb","556742f87acd550d0075ead1","556781cd6976ef0d0099c545","5568d666d33aad0d00ec8d2e","557f6b2d38249b0d00d0d12b","55b67be9c2e909190073ed38","564e56c601e80e0d00396684","56731b714b2a680d00524daf","573612ac652bd80e00a90027","57365e2cf8ebd31700769f50","57366131f8ebd31700769f58","573b93514e029d19000b8669","573bbfdb7ac6f6170033bd35"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-28T16:51:43.280Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"First, you will need to create your own UUID and token. You can do this by running the following command from your terminal window:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST -d \\\"type=example\\\" http://meshblu.octoblu.com/devices\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nThis should return a response from Meshblu with your very own UUID and Token like this one! Please use your own UUID and Token in the examples below.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\\"type\\\":\\\"example\\\",\\\"ipAddress\\\":\\\"70.171.192.231\\\",\\\"uuid\\\":\\\"0cf6c7e1-b2f8-11e3-a36b-61e66c96102e\\\",\\\"timestamp\\\":\\\"2014-03-24T02:00:19.038Z\\\",\\\"token\\\":\\\"63jous8wnn42huxrdz2456y1ypmk7qfr\\\",\\\"channel\\\":\\\"main\\\",\\\"online\\\":false}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nWe will be using the Meshblu and Request NPM modules in the examples below. You can install them using the following terminal commands:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"npm install meshblu\\nnpm install request\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"getting-started-with-examples","type":"basic","title":"Getting Started"}
First, you will need to create your own UUID and token. You can do this by running the following command from your terminal window: [block:code] { "codes": [ { "code": "curl -X POST -d \"type=example\" http://meshblu.octoblu.com/devices", "language": "text" } ] } [/block] This should return a response from Meshblu with your very own UUID and Token like this one! Please use your own UUID and Token in the examples below. [block:code] { "codes": [ { "code": "{\"type\":\"example\",\"ipAddress\":\"70.171.192.231\",\"uuid\":\"0cf6c7e1-b2f8-11e3-a36b-61e66c96102e\",\"timestamp\":\"2014-03-24T02:00:19.038Z\",\"token\":\"63jous8wnn42huxrdz2456y1ypmk7qfr\",\"channel\":\"main\",\"online\":false}", "language": "json" } ] } [/block] We will be using the Meshblu and Request NPM modules in the examples below. You can install them using the following terminal commands: [block:code] { "codes": [ { "code": "npm install meshblu\nnpm install request", "language": "text" } ] } [/block]