Suppose we want to get information from GitHub API for various users:
using HTTP
for user in users
resp = HTTP.get("https://api.github.com/users/$user")
end
The code fails for a large number of users due to the reduced rate limits for unauthenticated requests. Can you please explain how one can authenticate these requests with HTTP.jl? I have my GitHub authentication token set and working with GitHub.jl.
GitHub can authenticate you using a personal access token. Once you generate the token, you can just add ?access_token=<YOUR_TOKEN> to the end of the URL and it should work. At least this is what worked for me in PackageTracker.jl.