{"_id":"566f599ae144ab0d00e97301","project":"566f5337c1b00f1900ffd497","version":{"_id":"566f5337c1b00f1900ffd49a","project":"566f5337c1b00f1900ffd497","__v":6,"createdAt":"2015-12-14T23:39:35.821Z","releaseDate":"2015-12-14T23:39:35.821Z","categories":["566f5338c1b00f1900ffd49b","566f535bc1b00f1900ffd49e","566f5361c1b00f1900ffd49f","566f537ae144ab0d00e972de","56706d21e10ecb0d0004ef4f","567af36193919f0d00c97a6f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":9,"parentDoc":null,"category":{"_id":"566f5361c1b00f1900ffd49f","version":"566f5337c1b00f1900ffd49a","pages":["566f57efe61c1917005aa485","566f57f9fc3abb0d0020fcc7","566f5801c1b00f1900ffd4ad","566f580b7ffa002300c3cdb1","566f5817fc3abb0d0020fcc9","566f582ee144ab0d00e972f3","566f5834fc3abb0d0020fccb","566f5845de4b662100d60eb2","566f5855e144ab0d00e972f5","566f5866e144ab0d00e972f7","566f5870de4b662100d60eb4","566f5879fc3abb0d0020fccd","566f588dde4b662100d60eb6","566f5894de4b662100d60eb8","566f589ffc3abb0d0020fccf","566f58aae144ab0d00e972f9","566f58bb7ffa002300c3cdb3","566f58c67ffa002300c3cdb5","566f58d046acce17000c8c8e","566f58d9e144ab0d00e972fb","566f58e4de4b662100d60eba","566f58ede61c1917005aa488","566f58f746acce17000c8c90","566f5903e144ab0d00e972fd","566f590bfc3abb0d0020fcd1","566f592dfc3abb0d0020fcd3","566f593546acce17000c8c92","566f5942c1b00f1900ffd4af","566f594c46acce17000c8c94","566f5965e144ab0d00e972ff","566f597bde4b662100d60ebc","566f5986e61c1917005aa48a","566f5991de4b662100d60ebe","566f599ae144ab0d00e97301","566f59a5de4b662100d60ec0","566f5b3e7ffa002300c3cdbb","56ec52cb611730190000f246"],"__v":37,"project":"566f5337c1b00f1900ffd497","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-14T23:40:17.953Z","from_sync":false,"order":1,"slug":"operators","title":"Tools"},"user":"5564f227f0f70f0d00a9ab20","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-15T00:06:50.642Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":35,"body":"[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Io6aYaDuSpStMj2QM0VP_Screen%20Shot%202015-12-16%20at%205.59.31%20PM.png\",\n        \"Screen Shot 2015-12-16 at 5.59.31 PM.png\",\n        \"341\",\n        \"79\",\n        \"#76a4cb\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/G6yYECUJRTyFw9drexHb_Screen%20Shot%202015-12-16%20at%205.59.40%20PM.png\",\n        \"Screen Shot 2015-12-16 at 5.59.40 PM.png\",\n        \"358\",\n        \"417\",\n        \"#486b8a\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nBy default the triggers sends out a UTC timestamp as msg.payload.\n\nYou can set **Payload Type** to be a **String** or **Blank** as well.\n\n**Each trigger also has its own HTTP POST Webhook. See the sample flow for usage. Using POST overrides any payload of the flow be it timestamp or string and replaces it with the data POSTed to it.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/cEweugwISAuPmXCQ6wZO_Screen%20Shot%202015-12-16%20at%206.08.05%20PM.png\",\n        \"Screen Shot 2015-12-16 at 6.08.05 PM.png\",\n        \"348\",\n        \"180\",\n        \"\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n## Blu App\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/mRAezZSRTZuyOJNBcO50_Screen%20Shot%202015-12-16%20at%206.05.51%20PM.png\",\n        \"Screen Shot 2015-12-16 at 6.05.51 PM.png\",\n        \"323\",\n        \"571\",\n        \"#1fadd1\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n**The Blu app allows you to retrieve all triggers from an Octoblu account and use them via a mobile app at anytime!** \n\n[IOS APP](https://itunes.apple.com/us/app/blu/id938900017?mt=8) \n[block:embed]\n{\n  \"html\": false,\n  \"url\": \"https://play.google.com/store/apps/details?id=com.octoblu.blu\",\n  \"title\": \"Blu - Android Apps on Google Play\",\n  \"favicon\": \"https://ssl.gstatic.com/android/market_images/web/favicon.ico\",\n  \"image\": \"https://lh3.ggpht.com/FhIyx34Slm8H7FUmBgRPr5jMULwbyHYy6EK6c0ymVfTleKPzyPS8Ce1V6nKfRjUhjTk=h310\"\n}\n[/block]\n## Trigger API\n\nBuild apps that access triggers!\n\n[Trigger-Service API](https://trigger-service.readme.io/)\n\n## Sample Flows\n\n[https://app.octoblu.com/bluprints/import/9e0e50a1-4ddf-48a0-b49d-4cc1c345fb7c](https://app.octoblu.com/bluprints/import/9e0e50a1-4ddf-48a0-b49d-4cc1c345fb7c)","excerpt":"","slug":"trigger","type":"basic","title":"Trigger"}
[block:image] { "images": [ { "image": [ "https://files.readme.io/Io6aYaDuSpStMj2QM0VP_Screen%20Shot%202015-12-16%20at%205.59.31%20PM.png", "Screen Shot 2015-12-16 at 5.59.31 PM.png", "341", "79", "#76a4cb", "" ] } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/G6yYECUJRTyFw9drexHb_Screen%20Shot%202015-12-16%20at%205.59.40%20PM.png", "Screen Shot 2015-12-16 at 5.59.40 PM.png", "358", "417", "#486b8a", "" ] } ] } [/block] By default the triggers sends out a UTC timestamp as msg.payload. You can set **Payload Type** to be a **String** or **Blank** as well. **Each trigger also has its own HTTP POST Webhook. See the sample flow for usage. Using POST overrides any payload of the flow be it timestamp or string and replaces it with the data POSTed to it.** [block:image] { "images": [ { "image": [ "https://files.readme.io/cEweugwISAuPmXCQ6wZO_Screen%20Shot%202015-12-16%20at%206.08.05%20PM.png", "Screen Shot 2015-12-16 at 6.08.05 PM.png", "348", "180", "", "" ] } ] } [/block] ## Blu App [block:image] { "images": [ { "image": [ "https://files.readme.io/mRAezZSRTZuyOJNBcO50_Screen%20Shot%202015-12-16%20at%206.05.51%20PM.png", "Screen Shot 2015-12-16 at 6.05.51 PM.png", "323", "571", "#1fadd1", "" ] } ] } [/block] **The Blu app allows you to retrieve all triggers from an Octoblu account and use them via a mobile app at anytime!** [IOS APP](https://itunes.apple.com/us/app/blu/id938900017?mt=8) [block:embed] { "html": false, "url": "https://play.google.com/store/apps/details?id=com.octoblu.blu", "title": "Blu - Android Apps on Google Play", "favicon": "https://ssl.gstatic.com/android/market_images/web/favicon.ico", "image": "https://lh3.ggpht.com/FhIyx34Slm8H7FUmBgRPr5jMULwbyHYy6EK6c0ymVfTleKPzyPS8Ce1V6nKfRjUhjTk=h310" } [/block] ## Trigger API Build apps that access triggers! [Trigger-Service API](https://trigger-service.readme.io/) ## Sample Flows [https://app.octoblu.com/bluprints/import/9e0e50a1-4ddf-48a0-b49d-4cc1c345fb7c](https://app.octoblu.com/bluprints/import/9e0e50a1-4ddf-48a0-b49d-4cc1c345fb7c)