{"_id":"546b91dab47b5d1400109ef8","__v":13,"project":"545137a814af501a00b50cf9","user":"5433099f9a2b451a00ad4531","parentDoc":null,"version":{"_id":"545137a814af501a00b50cfc","project":"545137a814af501a00b50cf9","__v":11,"createdAt":"2014-10-29T18:53:28.525Z","releaseDate":"2014-10-29T18:53:28.525Z","categories":["545137a814af501a00b50cfd","545138eaa66f020800dbab4a","546b9072b47b5d1400109edf","546b9082b47b5d1400109ee0","546b9088b47b5d1400109ee1","546b909462515a14007ebc43","546b90a0b47b5d1400109ee2","546ced235884600e007a92f6","5481008eea7fd40b00cd7c2b","573b9d83ee2b3b220042291f","57be1efa15efc70e006a5f99"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"545138eaa66f020800dbab4a","project":"545137a814af501a00b50cf9","version":"545137a814af501a00b50cfc","__v":5,"pages":["5451398d14af501a00b50d17","546b916b62515a14007ebc4b","546b91a862515a14007ebc4d","546b91c8b47b5d1400109ef6","546b91dab47b5d1400109ef8"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-29T18:58:50.759Z","from_sync":false,"order":3,"slug":"authentication","title":"Authentication"},"updates":["55302c27bfbc2f19007ade56","574293ec990c970e00386dfb"],"next":{"pages":[],"description":""},"createdAt":"2014-11-18T18:37:14.677Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":false,"results":{"codes":[]},"try":true,"auth":"never","params":[],"url":""},"isReference":false,"order":4,"body":"**Generate A Test Access Token**\nThese are the steps to generate an OAuth 2.0 token for testing purposes, using your browser.\n  * (1.) Sign up for Yammer :::at::: https://www.yammer.com (No Gmail/Hotmail/Yahoo etc.).\n\n  * (2.) Go to https://www.yammer.com/client_applications and register a new app.\n  \n  * (3.) Navigate to “Basic Info” on the left hand side and fill out the “Redirect URI” with: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://www.yammer.com\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/jriPk5oSXagnKVOqC46C_RedirectURI.png\",\n        \"RedirectURI.png\",\n        \"620\",\n        \"465\",\n        \"#e41a17\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n(4.) Copy your Client ID, Redirect URI from the Application Information page.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/0uaUwifS5CMlJb2D8psH_ClientId.png\",\n        \"ClientId.png\",\n        \"648\",\n        \"462\",\n        \"#883436\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n(5.) Paste this url into your browser, where client_id, redirect uri are the values obtained from step 4 above: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://www.yammer.com/oauth2/authorize?client_id=[:client_id]&redirect_uri=[:redirect_uri]\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n(6.) Copy the “code=” value from the URL created.\n  \n(7.)  Paste this url into your browser, where client_id, client secret are obtained in step 4 above. Code is the code from step 6. \n \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://www.yammer.com/oauth2/access_token.json?client_id=[:client_id]&client_secret=[:client_secret]&code=[:code]\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n(8.) Copy the “token:” value from the resulting JSON.\n  \n(9.) You can try out the resulting token with the following endpoint , sending the token as a bearer token as shown above. https://www.yammer.com/api/v1/messages.json\n\n\nFor additional information,  review the official [OAuth 2.0 spec](http://oauth.net/2/).\nThere's also a list of OAuth 2.0 clients if you'd rather not implement the details yourself.\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n\n\n**Next steps**\nGet started with [Open Graph](http://yammer.readme.io/v1.0/docs/open-graph)\n\n**Questions?**\nAsk [Support](http://yammer.readme.io/v1.0/page/support)","excerpt":"","slug":"test-token","type":"basic","title":"Test Token"}
**Generate A Test Access Token** These are the steps to generate an OAuth 2.0 token for testing purposes, using your browser. * (1.) Sign up for Yammer @ https://www.yammer.com (No Gmail/Hotmail/Yahoo etc.). * (2.) Go to https://www.yammer.com/client_applications and register a new app. * (3.) Navigate to “Basic Info” on the left hand side and fill out the “Redirect URI” with: [block:code] { "codes": [ { "code": "https://www.yammer.com", "language": "text" } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/jriPk5oSXagnKVOqC46C_RedirectURI.png", "RedirectURI.png", "620", "465", "#e41a17", "" ] } ] } [/block] (4.) Copy your Client ID, Redirect URI from the Application Information page. [block:image] { "images": [ { "image": [ "https://files.readme.io/0uaUwifS5CMlJb2D8psH_ClientId.png", "ClientId.png", "648", "462", "#883436", "" ] } ] } [/block] (5.) Paste this url into your browser, where client_id, redirect uri are the values obtained from step 4 above: [block:code] { "codes": [ { "code": "https://www.yammer.com/oauth2/authorize?client_id=[:client_id]&redirect_uri=[:redirect_uri]", "language": "text" } ] } [/block] (6.) Copy the “code=” value from the URL created. (7.) Paste this url into your browser, where client_id, client secret are obtained in step 4 above. Code is the code from step 6. [block:code] { "codes": [ { "code": "https://www.yammer.com/oauth2/access_token.json?client_id=[:client_id]&client_secret=[:client_secret]&code=[:code]", "language": "text" } ] } [/block] (8.) Copy the “token:” value from the resulting JSON. (9.) You can try out the resulting token with the following endpoint , sending the token as a bearer token as shown above. https://www.yammer.com/api/v1/messages.json For additional information, review the official [OAuth 2.0 spec](http://oauth.net/2/). There's also a list of OAuth 2.0 clients if you'd rather not implement the details yourself. [block:api-header] { "type": "basic" } [/block] **Next steps** Get started with [Open Graph](http://yammer.readme.io/v1.0/docs/open-graph) **Questions?** Ask [Support](http://yammer.readme.io/v1.0/page/support)