{"action":"created","issue":{"url":"https://api.github.com/repos/k0shk0sh/FastHub/issues/1707","repository_url":"https://api.github.com/repos/k0shk0sh/FastHub","labels_url":"https://api.github.com/repos/k0shk0sh/FastHub/issues/1707/labels{/name}","comments_url":"https://api.github.com/repos/k0shk0sh/FastHub/issues/1707/comments","events_url":"https://api.github.com/repos/k0shk0sh/FastHub/issues/1707/events","html_url":"https://github.com/k0shk0sh/FastHub/issues/1707","id":311733290,"number":1707,"title":"Suggestion: Add token to header","user":{"login":"AllanWang","id":6251823,"avatar_url":"https://avatars0.githubusercontent.com/u/6251823?v=4","gravatar_id":"","url":"https://api.github.com/users/AllanWang","html_url":"https://github.com/AllanWang","followers_url":"https://api.github.com/users/AllanWang/followers","following_url":"https://api.github.com/users/AllanWang/following{/other_user}","gists_url":"https://api.github.com/users/AllanWang/gists{/gist_id}","starred_url":"https://api.github.com/users/AllanWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllanWang/subscriptions","organizations_url":"https://api.github.com/users/AllanWang/orgs","repos_url":"https://api.github.com/users/AllanWang/repos","events_url":"https://api.github.com/users/AllanWang/events{/privacy}","received_events_url":"https://api.github.com/users/AllanWang/received_events","type":"User","site_admin":false},"labels":[{"id":878955140,"url":"https://api.github.com/repos/k0shk0sh/FastHub/labels/Type:%20GitHub%20API","name":"Type: GitHub API","color":"f7f309","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-05T19:09:01Z","updated_at":"2018-04-05T19:41:40Z","closed_at":"2018-04-05T19:39:46Z","author_association":"NONE","body":"I don't know where you saw that github can't access private repo data, but you can authorize requests by either sending your token in the header or as a query argument. Given that you are using retrofit, it would probably be easiest to add an interceptor to pass a token from a shared pref or something. That way, if it changes, you won't need to make a new retrofit instance.\r\n\r\nSee api documentation (if you are still using v3): https://developer.github.com/v3/#authentication\r\n\r\nThis will also resolve #1387, #1330, #1185\r\n\r\nI can also confirm that this is possible and not limited to browser cookies, because you can download private releases with OctoDroid"},"comment":{"url":"https://api.github.com/repos/k0shk0sh/FastHub/issues/comments/379053615","html_url":"https://github.com/k0shk0sh/FastHub/issues/1707#issuecomment-379053615","issue_url":"https://api.github.com/repos/k0shk0sh/FastHub/issues/1707","id":379053615,"user":{"login":"AllanWang","id":6251823,"avatar_url":"https://avatars0.githubusercontent.com/u/6251823?v=4","gravatar_id":"","url":"https://api.github.com/users/AllanWang","html_url":"https://github.com/AllanWang","followers_url":"https://api.github.com/users/AllanWang/followers","following_url":"https://api.github.com/users/AllanWang/following{/other_user}","gists_url":"https://api.github.com/users/AllanWang/gists{/gist_id}","starred_url":"https://api.github.com/users/AllanWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllanWang/subscriptions","organizations_url":"https://api.github.com/users/AllanWang/orgs","repos_url":"https://api.github.com/users/AllanWang/repos","events_url":"https://api.github.com/users/AllanWang/events{/privacy}","received_events_url":"https://api.github.com/users/AllanWang/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T19:41:40Z","updated_at":"2018-04-05T19:41:40Z","author_association":"NONE","body":"Please keep this open. This is definitely not a Github API issue as other apps have successfully done it. I will do some more testing on my own time. And if possible, please update the slack invite link and add me so I can better communicate if there are other issues."}}
{"actor":{"display_login":"AllanWang"}}