{"_id":"55f28173f9f3991900f38a1d","category":{"_id":"55f28172f9f3991900f38a16","__v":3,"pages":["55f28173f9f3991900f38a1d","55f28173f9f3991900f38a1e","55f28173f9f3991900f38a1f","55f28173f9f3991900f38a20","55f28173f9f3991900f38a21","55f28173f9f3991900f38a22","55f28173f9f3991900f38a23","55f28173f9f3991900f38a24","55f28173f9f3991900f38a25","55f28173f9f3991900f38a26","55f28173f9f3991900f38a27","55f63d46fe4cce21005c785e","55f65cc16be5ea0d00bbbf4c"],"project":"54ebb40d6423300d003672c0","version":"55f28172f9f3991900f38a13","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-17T05:23:31.147Z","from_sync":false,"order":2,"slug":"api-endpoints","title":"API Endpoints"},"__v":0,"user":"557e2561eb75d80d00af3dab","version":{"_id":"55f28172f9f3991900f38a13","project":"54ebb40d6423300d003672c0","__v":2,"createdAt":"2015-09-11T07:23:30.065Z","releaseDate":"2015-09-11T07:23:30.065Z","categories":["55f28172f9f3991900f38a14","55f28172f9f3991900f38a15","55f28172f9f3991900f38a16","55f66acb297b37170058accb"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"project":"54ebb40d6423300d003672c0","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-24T03:30:27.718Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 1 - Get an API key\"\n}\n[/block]\nGo to the [LIFX Cloud settings page](https://cloud.lifx.com/settings) and generate a key. See the GIF below for a quick video tutorial.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Uw1PRNPoQ7nFUYDuT6oA_GetLIFXToken.gif\",\n        \"GetLIFXToken.gif\",\n        \"1050\",\n        \"600\",\n        \"#350a70\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 2 - Use that API Key in the documentation\"\n}\n[/block]\nAt the bottom of the API Endpoint pages there is a section that allows you to test the API. If you click the key, paste your token in, and save it you can then test the API against your own account. See the GIF below for a quick video tutorial.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/OSt3xuOTxGIn98oZWTsS_out.gif\",\n        \"out.gif\",\n        \"800\",\n        \"260\",\n        \"#60ba58\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"how-to-use-the-following-examples","type":"basic","title":"How to use the following examples"}

How to use the following examples


[block:api-header] { "type": "basic", "title": "Step 1 - Get an API key" } [/block] Go to the [LIFX Cloud settings page](https://cloud.lifx.com/settings) and generate a key. See the GIF below for a quick video tutorial. [block:image] { "images": [ { "image": [ "https://files.readme.io/Uw1PRNPoQ7nFUYDuT6oA_GetLIFXToken.gif", "GetLIFXToken.gif", "1050", "600", "#350a70", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Step 2 - Use that API Key in the documentation" } [/block] At the bottom of the API Endpoint pages there is a section that allows you to test the API. If you click the key, paste your token in, and save it you can then test the API against your own account. See the GIF below for a quick video tutorial. [block:image] { "images": [ { "image": [ "https://files.readme.io/OSt3xuOTxGIn98oZWTsS_out.gif", "out.gif", "800", "260", "#60ba58", "" ] } ] } [/block]