{"action":"closed","issue":{"url":"https://api.github.com/repos/GrahamCampbell/Laravel-GitHub/issues/6","labels_url":"https://api.github.com/repos/GrahamCampbell/Laravel-GitHub/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/GrahamCampbell/Laravel-GitHub/issues/6/comments","events_url":"https://api.github.com/repos/GrahamCampbell/Laravel-GitHub/issues/6/events","html_url":"https://github.com/GrahamCampbell/Laravel-GitHub/issues/6","id":59701396,"number":6,"title":"Getting 'Bad Credentials' when trying to use this","user":{"login":"mdunbavan","id":671281,"avatar_url":"https://avatars.githubusercontent.com/u/671281?v=3","gravatar_id":"","url":"https://api.github.com/users/mdunbavan","html_url":"https://github.com/mdunbavan","followers_url":"https://api.github.com/users/mdunbavan/followers","following_url":"https://api.github.com/users/mdunbavan/following{/other_user}","gists_url":"https://api.github.com/users/mdunbavan/gists{/gist_id}","starred_url":"https://api.github.com/users/mdunbavan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdunbavan/subscriptions","organizations_url":"https://api.github.com/users/mdunbavan/orgs","repos_url":"https://api.github.com/users/mdunbavan/repos","events_url":"https://api.github.com/users/mdunbavan/events{/privacy}","received_events_url":"https://api.github.com/users/mdunbavan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T20:34:59Z","updated_at":"2015-03-03T20:46:55Z","closed_at":"2015-03-03T20:46:55Z","body":"Hi @GrahamCampbell,\r\n\r\nJust installed this with composer on laravel 4 and setup the config like so:\r\n\r\n```\r\n'default' => 'main',\r\n\r\n    /*\r\n    |--------------------------------------------------------------------------\r\n    | GitHub Connections\r\n    |--------------------------------------------------------------------------\r\n    |\r\n    | Here are each of the connections setup for your application. Example\r\n    | configuration has been included, but you may add as many connections as\r\n    | you would like.\r\n    |\r\n    */\r\n\r\n    'connections' => [\r\n        'main' => [\r\n            'token'   => ' d3a0ec2f14a77bcfc39699ed8c3546714b6782a5',\r\n        ],\r\n    ],\r\n```\r\n\r\nI set all this up in the github settings for applications and created an app and auth token:\r\n\r\n![screen shot 2015-03-03 at 20 29 54](https://cloud.githubusercontent.com/assets/671281/6471640/afe40c00-c1e4-11e4-8d46-345c7ce58797.png)\r\n\r\n```\r\nGitHub::me()->organizations();\r\n```\r\n\r\nWhen I try to access some data I get this:\r\n\r\n'Bad credentials'\r\n\r\nWhat could it be?"}}