Problem using Github API with personal access token

I have authenticated my github account (got a personal access token) but am finding it hard to get it working. It's stored in my .Renviron file, and I added it to my windows credential manager.

When I do curl -i -u <user>:<token> https://api.github.com/users/rate_limit in git bash it says my limit is 5000.

But if I were to go https://api.github.com/repos/tidyverse/dplyr/git/trees/master?recursive=1 then it says my limit has been reached. How do I make this call in a way that the API knows that I am an authenticated user?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.