{"action":"opened","issue":{"url":"https://api.github.com/repos/henrikfroehling/TraktApiSharp/issues/2","repository_url":"https://api.github.com/repos/henrikfroehling/TraktApiSharp","labels_url":"https://api.github.com/repos/henrikfroehling/TraktApiSharp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/henrikfroehling/TraktApiSharp/issues/2/comments","events_url":"https://api.github.com/repos/henrikfroehling/TraktApiSharp/issues/2/events","html_url":"https://github.com/henrikfroehling/TraktApiSharp/issues/2","id":164459120,"number":2,"title":"How to get Device authorization token","user":{"login":"mwhisler","id":6809958,"avatar_url":"https://avatars.githubusercontent.com/u/6809958?v=3","gravatar_id":"","url":"https://api.github.com/users/mwhisler","html_url":"https://github.com/mwhisler","followers_url":"https://api.github.com/users/mwhisler/followers","following_url":"https://api.github.com/users/mwhisler/following{/other_user}","gists_url":"https://api.github.com/users/mwhisler/gists{/gist_id}","starred_url":"https://api.github.com/users/mwhisler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwhisler/subscriptions","organizations_url":"https://api.github.com/users/mwhisler/orgs","repos_url":"https://api.github.com/users/mwhisler/repos","events_url":"https://api.github.com/users/mwhisler/events{/privacy}","received_events_url":"https://api.github.com/users/mwhisler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-08T04:59:12Z","updated_at":"2016-07-08T04:59:12Z","closed_at":null,"body":"I'm sure I'm just missing something here, but can you help me figure out why I'm getting this exception when I try to poll for authorization?\r\n\r\nWhen I send the values through Postman, everything works just fine so I'm sure it's the way I'm using the TraktClient.  Here's my code:\r\n\r\n`var client = new TraktClient(\"[id]\", \"[secret]\");\r\nvar device = await client.DeviceAuth.GenerateDeviceAsync();\r\nConsole.WriteLine(device.UserCode); //go out and actually enter the code and complete the authorization\r\nvar token = await client.DeviceAuth.PollForAuthorizationAsync();`\r\n\r\nI receive a TraktForbiddenException: Forbidden -invalid API key or unapproved app.  Thoughts?"}}
{"actor":{"display_login":"mwhisler"}}