Den
Den

Reputation: 283

Github API personal access tokens throws Unauthorized error

I've created a personal access token on github, it works when I use it like this:

https://api.github.com/users/xyz/repos?access_token=TOKEN

But it throws Unauthorized error when I try using Pagination like this:

https://api.github.com/users/xyz/repos?access_token=TOKEN?page=1&per_page=10

Upvotes: 4

Views: 213

Answers (1)

VonC
VonC

Reputation: 1329492

Try and replace the second ? by &:

https://api.github.com/users/xyz/repos?access_token=TOKEN&page=1&per_page=10
                                                       ^^^^^

That should allow you to chain URL parameters.

Upvotes: 2

Related Questions