So far, what I understand is that I'm supposed to obtain an installation token for a user and perform server to server requests using that. But when I try to use that token from the client, I get
HttpError: Resource not accessible by integration
When I use an OAuth token, I seem to only get public repos/branches. Is there any way to get private repos/branches from a browser?
Solved! Solved! Go to Solution.
Figured it out: I could get the private repos with the oauth token as shown in https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-... I just has to up the per_page to 100 (the default is 30 in the JS REST API).