Can Github App Query Private Repos from Client? #24451
-
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
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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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-apps/. I just has to up the per_page to 100 (the default is 30 in the JS REST API). |
Beta Was this translation helpful? Give feedback.
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-apps/. I just has to up the per_page to 100 (the default is 30 in the JS REST API).