What endpoints are you accessing? You have to set an authorization header that contains a GitHub access token. See https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ for example.