{"__v":13,"_id":"55bbf19bba60dd0d00a63018","category":{"__v":3,"_id":"55bc25ee76754617002aa893","pages":["55bc2617e554822b00f3127a","55bc2620e554822b00f3127c","55bc2b3676754617002aa89b"],"project":"54295508cd35120800fceca2","version":"55b9611eb42b610d00c9b28d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-01T01:50:38.022Z","from_sync":false,"order":7,"slug":"actionable-notifications","title":"Actionable Notifications"},"project":"54295508cd35120800fceca2","user":"542954f6cd35120800fceca0","version":{"__v":4,"_id":"55b9611eb42b610d00c9b28d","project":"54295508cd35120800fceca2","createdAt":"2015-07-29T23:26:22.532Z","releaseDate":"2015-07-29T23:26:22.532Z","categories":["55b9611fb42b610d00c9b28e","55b9611fb42b610d00c9b28f","55b9611fb42b610d00c9b290","55b9611fb42b610d00c9b291","55b9611fb42b610d00c9b292","55b9611fb42b610d00c9b293","55bc25ee76754617002aa893","56ae7f53be2c040d00d5a09b","56ae7f7b0c1cab0d009f65d1"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-31T22:07:23.555Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"For this tutorial you'll need:\n* The latest Yo app beta. \n* From your iPhone go [http://justyo.co/ios](http://justyo.co/ios).\n* Android: https://yoapp.s3.amazonaws.com/yo/yo.apk\n* A personal Yo account on your phone where you are logged in.\n\n---------------------------------------------------------------------\n\n1. Login to your personal Yo account's [dashboard](https://dashboard.justyo.co)   \n\n2. Create a request bin to inspect the magic: [http://requestb.in/](http://requestb.in/) \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/8N34i4K3R5ixkclpwDwv_Screen%20Shot%202015-07-31%20at%203.09.06%20PM.png\",\n        \"Screen Shot 2015-07-31 at 3.09.06 PM.png\",\n        \"916\",\n        \"353\",\n        \"#2fb976\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n3. Copy the request bin URL and leave this page open in the browser. we will get back here soon.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/6QvzDmcJTdWAR73OCPNi_Screen%20Shot%202015-07-31%20at%203.21.06%20PM.png\",\n        \"Screen Shot 2015-07-31 at 3.21.06 PM.png\",\n        \"972\",\n        \"255\",\n        \"#7462a3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n\n3. Create a Yo sub-account through the [dashboard](https://dashboard.justyo.co) \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/zFaSVHRxOQ4npcDb8yAa_Screen%20Shot%202015-07-29%20at%203.46.46%20PM.png\",\n        \"Screen Shot 2015-07-29 at 3.46.46 PM.png\",\n        \"1010\",\n        \"744\",\n        \"#43596e\",\n        \"\"\n      ],\n      \"caption\": \"\"\n    }\n  ]\n}\n[/block]\n4. Paste the request bin URL and create the account\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/hBIIV54UQRCR9tfQXzJQ_Screen%20Shot%202015-07-29%20at%203.46.53%20PM.png\",\n        \"Screen Shot 2015-07-29 at 3.46.53 PM.png\",\n        \"1010\",\n        \"744\",\n        \"#4c5f76\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n5. Copy your new sub-account API token.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/BpAkAlcPQryRJrm2zVOt_Screen%20Shot%202015-07-31%20at%204.12.21%20PM.png\",\n        \"Screen Shot 2015-07-31 at 4.12.21 PM.png\",\n        \"664\",\n        \"168\",\n        \"#ee6b4a\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n6. Open your favorite text editor and copy paste the following commands\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"export YO_API_TOKEN=\\\"your new sub-account api token\\\"\\nexport MY_YO_USERNAME=\\\"your personal Yo username\\\"\\nexport TEXT=\\\"Hello World\\\" \\nexport RESPONSE_PAIR=\\\"๐Ÿ˜.Hell Yeah\\\"\\ncurl --data \\\"api_token=$YO_API_TOKEN&username=$MY_YO_USERNAME&text=$TEXT&response_pair=$RESPONSE_PAIR\\\" http://api.justyo.co/yo/\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n7. \n    A. In the first line enter the API token of the new sub-account you just copied.\n    B. In the second line enter your personal Yo username (the one you receive Yos to on your phone).\n    C. DO NOT CHANGE THE OTHER LINES\n    D. Copy and paste these commands (with your data) in Terminal and press Enter\n\n\n8. You just sent the Yo! \n    You should see this:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/GTVzlS73S86eiAq80owR_Screen%20Shot%202015-07-31%20at%204.01.03%20PM.png\",\n        \"Screen Shot 2015-07-31 at 4.01.03 PM.png\",\n        \"249\",\n        \"40\",\n        \"#04b822\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n9. Swipe the Yo\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/wk3TateXSWGz7hGvYawf_IMG_3354.PNG\",\n        \"IMG_3354.PNG\",\n        \"320\",\n        \"568\",\n        \"#152d3b\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n10. Tap one of the buttons\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/sctbZkTMR6qxkOvORSkr_IMG_3355.PNG\",\n        \"IMG_3355.PNG\",\n        \"320\",\n        \"568\",\n        \"#152e3b\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n11. Refresh the request bin page and observe\n\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/FFGUnpsQQGCrZQgREJvZ_request-bin-end.png\",\n        \"request-bin-end.png\",\n        \"2518\",\n        \"1070\",\n        \"#fa3717\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nEOF","excerpt":"A 3 minutes intro into actionable Yo notifications","slug":"hello-world","type":"basic","title":"Hello World"}

Hello World

A 3 minutes intro into actionable Yo notifications

For this tutorial you'll need: * The latest Yo app beta. * From your iPhone go [http://justyo.co/ios](http://justyo.co/ios). * Android: https://yoapp.s3.amazonaws.com/yo/yo.apk * A personal Yo account on your phone where you are logged in. --------------------------------------------------------------------- 1. Login to your personal Yo account's [dashboard](https://dashboard.justyo.co) 2. Create a request bin to inspect the magic: [http://requestb.in/](http://requestb.in/) [block:image] { "images": [ { "image": [ "https://files.readme.io/8N34i4K3R5ixkclpwDwv_Screen%20Shot%202015-07-31%20at%203.09.06%20PM.png", "Screen Shot 2015-07-31 at 3.09.06 PM.png", "916", "353", "#2fb976", "" ] } ] } [/block] 3. Copy the request bin URL and leave this page open in the browser. we will get back here soon. [block:image] { "images": [ { "image": [ "https://files.readme.io/6QvzDmcJTdWAR73OCPNi_Screen%20Shot%202015-07-31%20at%203.21.06%20PM.png", "Screen Shot 2015-07-31 at 3.21.06 PM.png", "972", "255", "#7462a3", "" ] } ] } [/block] 3. Create a Yo sub-account through the [dashboard](https://dashboard.justyo.co) [block:image] { "images": [ { "image": [ "https://files.readme.io/zFaSVHRxOQ4npcDb8yAa_Screen%20Shot%202015-07-29%20at%203.46.46%20PM.png", "Screen Shot 2015-07-29 at 3.46.46 PM.png", "1010", "744", "#43596e", "" ], "caption": "" } ] } [/block] 4. Paste the request bin URL and create the account [block:image] { "images": [ { "image": [ "https://files.readme.io/hBIIV54UQRCR9tfQXzJQ_Screen%20Shot%202015-07-29%20at%203.46.53%20PM.png", "Screen Shot 2015-07-29 at 3.46.53 PM.png", "1010", "744", "#4c5f76", "" ] } ] } [/block] 5. Copy your new sub-account API token. [block:image] { "images": [ { "image": [ "https://files.readme.io/BpAkAlcPQryRJrm2zVOt_Screen%20Shot%202015-07-31%20at%204.12.21%20PM.png", "Screen Shot 2015-07-31 at 4.12.21 PM.png", "664", "168", "#ee6b4a", "" ] } ] } [/block] 6. Open your favorite text editor and copy paste the following commands [block:code] { "codes": [ { "code": "export YO_API_TOKEN=\"your new sub-account api token\"\nexport MY_YO_USERNAME=\"your personal Yo username\"\nexport TEXT=\"Hello World\" \nexport RESPONSE_PAIR=\"๐Ÿ˜.Hell Yeah\"\ncurl --data \"api_token=$YO_API_TOKEN&username=$MY_YO_USERNAME&text=$TEXT&response_pair=$RESPONSE_PAIR\" http://api.justyo.co/yo/", "language": "curl" } ] } [/block] 7. A. In the first line enter the API token of the new sub-account you just copied. B. In the second line enter your personal Yo username (the one you receive Yos to on your phone). C. DO NOT CHANGE THE OTHER LINES D. Copy and paste these commands (with your data) in Terminal and press Enter 8. You just sent the Yo! You should see this: [block:image] { "images": [ { "image": [ "https://files.readme.io/GTVzlS73S86eiAq80owR_Screen%20Shot%202015-07-31%20at%204.01.03%20PM.png", "Screen Shot 2015-07-31 at 4.01.03 PM.png", "249", "40", "#04b822", "" ] } ] } [/block] 9. Swipe the Yo [block:image] { "images": [ { "image": [ "https://files.readme.io/wk3TateXSWGz7hGvYawf_IMG_3354.PNG", "IMG_3354.PNG", "320", "568", "#152d3b", "" ] } ] } [/block] 10. Tap one of the buttons [block:image] { "images": [ { "image": [ "https://files.readme.io/sctbZkTMR6qxkOvORSkr_IMG_3355.PNG", "IMG_3355.PNG", "320", "568", "#152e3b", "" ] } ] } [/block] 11. Refresh the request bin page and observe [block:image] { "images": [ { "image": [ "https://files.readme.io/FFGUnpsQQGCrZQgREJvZ_request-bin-end.png", "request-bin-end.png", "2518", "1070", "#fa3717", "" ] } ] } [/block] EOF