{"__v":0,"_id":"55b9611fb42b610d00c9b294","category":{"__v":2,"_id":"55b9611fb42b610d00c9b290","pages":["55b9611fb42b610d00c9b294","55b9611fb42b610d00c9b295","55b9611fb42b610d00c9b296","55b9611fb42b610d00c9b297","55c523807f345917005ff8ad"],"project":"54295508cd35120800fceca2","version":"55b9611eb42b610d00c9b28d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-29T22:28:54.673Z","from_sync":false,"order":2,"slug":"rest-api-oauth","title":"Rest API"},"editedParams":true,"editedParams2":true,"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-29T22:30:50.488Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl http://api.justyo.co/yos/?access_token=<access_token>","language":"curl"},{"code":"import requests\nrequests.get(\"http://api.justyo.co/yos/?access_token=<access_token>\")","language":"python"},{"code":"require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nuri = URI.parse(\"https://api.justyo.co/yos/?access_token=<access_token>\")\n\n# Create the HTTP objects\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Get.new(uri.request_uri, header)\nrequest.body = payload.to_json\n\n# Send the request\nresponse = http.request(request)","language":"ruby"},{"code":"$http.get('https://api.justyo.co/yos/?access_token=<access_token>').success(successCallback);","language":"javascript"},{"code":"NSString *jsonRequest = [jsonDict JSONRepresentation];\nNSURL *url = [NSURL URLWithString::::at:::\"https://api.justyo.co/yos\"];\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url\n             cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];\nNSData *requestData = [jsonRequest dataUsingEncoding:NSUTF8StringEncoding];\n[request setHTTPMethod:@\"GET\"];\n[request setValue:@\"application/json\" forHTTPHeaderField:@\"Accept\"];\n[request setValue:@\"application/json\" forHTTPHeaderField:@\"Content-Type\"];\n\nNSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];\n","language":"objectivec"}]},"results":{"codes":[{"name":"","code":"{\n  \"unread_yos\": [\n    {\n      \"body\": \"YOMYPOPCORN\",\n      \"category\": \"link_yo_service\",\n      \"created_at\": 1453914974401519,\n      \"header\": \"\\ud83d\\udd17 Link from YOMYPOPCORN\",\n      \"link\": \"http://app.yomypopcorn.com/feed?username=OR&token=3062f670a55cef3b&yoid=cijx3fpfh00al3w7iiipmcrqq&yoref=app\",\n      \"origin_yo_id\": \"56a8fb5eac801c0027ea1cb9\",\n      \"sender\": \"YOMYPOPCORN\",\n      \"sender_object\": {\n        \"display_name\": \"YOMYPOPCORN\",\n        \"photo_url\": \"https://s3.amazonaws.com/yoapp-images/54c251d4e6032d003a28a971440966b9.jpg\",\n        \"user_id\": \"54c251d4e6032d003a28a971\",\n        \"user_type\": \"user\",\n        \"username\": \"YOMYPOPCORN\"\n      },\n      \"sound\": \"yo.mp3\",\n      \"status\": \"sent\",\n      \"thumbnail_url\": \"http://api.url2png.com/v6/P54E3B2A2019BE/59b82583449df7b1596bfee37359497d/png/?url=http%3A%2F%2Fapp.yomypopcorn.com%2Ffeed%3Fusername%3DOR%26token%3D3062f670a55cef3b%26yoid%3Dcijx3fpfh00al3w7iiipmcrqq%26yoref%3Dapp&thumbnail_max_width=89&fullpage=false&viewport=320x320\",\n      \"user_id\": \"54c251d4e6032d003a28a971\",\n      \"user_type\": \"user\",\n      \"yo_id\": \"56a8fb5eac801c0027ea1cb9\"\n    },\n    {\n      \"body\": \"LONELYPLANET\",\n      \"category\": \"link_yo_service\",\n      \"cover\": \"https://s3.amazonaws.com/yoapp-userfiles/VAMlq47.png\",\n      \"created_at\": 1453902399593768,\n      \"header\": \"\\ud83c\\udf0e Link from LONELYPLANET\",\n      \"link\": \"http://bit.ly/1lRRhi2\",\n      \"origin_yo_id\": \"56a8ca0efec2c1002977a35f\",\n      \"sender\": \"LONELYPLANET\",\n      \"sender_object\": {\n        \"display_name\": \"LONELYPLANET\",\n        \"user_id\": \"5489beb8f4a5052f69616820\",\n        \"user_type\": \"user\",\n        \"username\": \"LONELYPLANET\"\n      },\n      \"sound\": \"yo.mp3\",\n      \"status\": \"sent\",\n      \"thumbnail_url\": \"http://api.url2png.com/v6/P54E3B2A2019BE/032db6434bee1532580dde5ff8cbd79c/png/?url=http%3A%2F%2Fwww.lonelyplanet.com%2Fnews%2F2016%2F01%2F27%2Fnew-smart-sat-nav-offers-scenic-route-to-drivers%2F&fullpage=false&thumbnail_max_width=89&viewport=320x320\",\n      \"user_id\": \"5489beb8f4a5052f69616820\",\n      \"user_type\": \"user\",\n      \"yo_id\": \"56a8ca4be0a6d40006b43983\"\n    },\n    {\n      \"body\": \"SAVEDYOUACLICK\",\n      \"category\": \"link_yo_service\",\n      \"created_at\": 1453871510062541,\n      \"header\": \"\\ud83d\\udd17 Link from SAVEDYOUACLICK\",\n      \"link\": \"http://bit.ly/1PAinln\",\n      \"origin_yo_id\": \"56a85184fec2c10028994e47\",\n      \"sender\": \"SAVEDYOUACLICK\",\n      \"sender_object\": {\n        \"display_name\": \"SAVEDYOUACLICK\",\n        \"user_id\": \"5489e481f4a5052f698fc2c1\",\n        \"user_type\": \"user\",\n        \"username\": \"SAVEDYOUACLICK\"\n      },\n      \"sound\": \"yo.mp3\",\n      \"status\": \"sent\",\n      \"thumbnail_url\": \"http://api.url2png.com/v6/P54E3B2A2019BE/d106131ee0c58a11f68fa161c9bb2c58/png/?thumbnail_max_width=89&fullpage=false&viewport=320x320&url=http%3A%2F%2Fbit.ly%2F1PAinln\",\n      \"user_id\": \"5489e481f4a5052f698fc2c1\",\n      \"user_type\": \"user\",\n      \"yo_id\": \"56a85198b846160006c53c03\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","auth":"never","params":[{"_id":"55b9541ae536930d00e36098","ref":"","in":"query","required":true,"desc":"","default":"","type":"string","name":"access_token"}],"url":"/yos/"},"isReference":false,"order":1,"body":"","excerpt":"Retrieve recent unread Yos","slug":"yos","type":"get","title":"/yos/"}

get/yos/

Retrieve recent unread Yos

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

access_token:
required
string

Examples


Result Format


User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}