{"action":"created","issue":{"url":"https://api.github.com/repos/zzarcon/nodegram/issues/4","repository_url":"https://api.github.com/repos/zzarcon/nodegram","labels_url":"https://api.github.com/repos/zzarcon/nodegram/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/zzarcon/nodegram/issues/4/comments","events_url":"https://api.github.com/repos/zzarcon/nodegram/issues/4/events","html_url":"https://github.com/zzarcon/nodegram/issues/4","id":189343109,"number":4,"title":"Can't understand authentication process","user":{"login":"ilyanoskov","id":16443383,"avatar_url":"https://avatars1.githubusercontent.com/u/16443383?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyanoskov","html_url":"https://github.com/ilyanoskov","followers_url":"https://api.github.com/users/ilyanoskov/followers","following_url":"https://api.github.com/users/ilyanoskov/following{/other_user}","gists_url":"https://api.github.com/users/ilyanoskov/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyanoskov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyanoskov/subscriptions","organizations_url":"https://api.github.com/users/ilyanoskov/orgs","repos_url":"https://api.github.com/users/ilyanoskov/repos","events_url":"https://api.github.com/users/ilyanoskov/events{/privacy}","received_events_url":"https://api.github.com/users/ilyanoskov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-15T09:41:15Z","updated_at":"2018-02-12T14:06:33Z","closed_at":null,"author_association":"NONE","body":"I have been trying to use this instagram library and I have not had much success yet. I am a beginning Javascript developer and I was trying to write a simple client-side application that would authorize a user through your library and display user's full name in console. For example I would write something like this in console :  \r\n\r\nnode app.js (my instagram name)\r\n\r\nand it would return\r\n\r\nfull name is FULLNAME.\r\n\r\nHow could I implement this? \r\n\r\nI do not understand what code I need to put where CODE is?\r\n\r\n```javascript\r\nvar Nodegram = require('nodegram');\r\nvar options = {\r\n      clientId: ' 243b1a35a618xczxcz644db8zxczsc4d9d9e2d1caaacb7be0',\r\n      clientSecret: '3dd3f8120a874zcczxc3169e7e1ff04f46czz6c8',\r\n    redirectUri: 'http://localhost:8080'\r\n}; \r\nvar gram = new Nodegram(options);\r\nvar url = gram.getAuthUrl();\r\nvar code = 'CODE';\r\nvar gram = gram.getAccessToken(code).then(function(res) {\r\n      var token = res.access_token;\r\n      console.log(token);\r\n    return new Nodegram({accessToken: token});\r\n});\r\n//console.log(gram);\r\n```\r\n\r\nas you can see I was trying to print out the access token so I would know that authentication worked out but it seems like it did not. \r\n"},"comment":{"url":"https://api.github.com/repos/zzarcon/nodegram/issues/comments/364931955","html_url":"https://github.com/zzarcon/nodegram/issues/4#issuecomment-364931955","issue_url":"https://api.github.com/repos/zzarcon/nodegram/issues/4","id":364931955,"user":{"login":"venits","id":31382349,"avatar_url":"https://avatars0.githubusercontent.com/u/31382349?v=4","gravatar_id":"","url":"https://api.github.com/users/venits","html_url":"https://github.com/venits","followers_url":"https://api.github.com/users/venits/followers","following_url":"https://api.github.com/users/venits/following{/other_user}","gists_url":"https://api.github.com/users/venits/gists{/gist_id}","starred_url":"https://api.github.com/users/venits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venits/subscriptions","organizations_url":"https://api.github.com/users/venits/orgs","repos_url":"https://api.github.com/users/venits/repos","events_url":"https://api.github.com/users/venits/events{/privacy}","received_events_url":"https://api.github.com/users/venits/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T14:06:33Z","updated_at":"2018-02-12T14:06:33Z","author_association":"NONE","body":"You can check this library:\r\nhttps://github.com/venits/instagram-web-oauth\r\nIt is the easiest way of getting access_token from Instagram right now."}}
{"actor":{"display_login":"venits"}}