{"action":"created","issue":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/396","labels_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/396/comments","events_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/396/events","html_url":"https://github.com/sigmavirus24/github3.py/issues/396","id":89633904,"number":396,"title":"PullFile.contents() and PullFile.download() don't work for private repo","user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-19T18:49:39Z","updated_at":"2015-06-19T22:31:54Z","closed_at":null,"body":"I am on the develop branch.\r\n\r\nWhen having a private repo, the methods `contents()` and `download()` on PullFile don't work.\r\n\r\nTried debugging it myself:\r\n\r\nRequest returns a 404:\r\n```\r\nIn [10]: pfile._get(pfile.raw_url)\r\nOut[10]: <Response [404]>\r\n```\r\n\r\nDropping the header `Accept: application/vnd.github.v3.full+json` from the request did not work.\r\n\r\nCopy pasting `pfile.raw_url` into my browser where I am logged into GitHub works."},"comment":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/comments/113661952","html_url":"https://github.com/sigmavirus24/github3.py/issues/396#issuecomment-113661952","issue_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/396","id":113661952,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T22:31:54Z","updated_at":"2015-06-19T22:31:54Z","body":"Given that there already is a class for it, would it be acceptable to change the signature of the `contents` method and have it return the contents object?"}}