title: Authentication issues for GitHub api request
body: <p>I am trying to retrieve a list of collaborators from a repository on GitHub, as an example, I am using the repository of the GitHub API for Golang.</p>
  
  <p>In curl, the request would be the following:</p>
  
  <pre><code>curl -u "my user" https://api.github.com/repos/google/go-github/collaborators
  </code></pre>
  
  <p>After a password prompt, I get the following JSON result:</p>
  
  <pre><code>{
    "message": "Must have push access to view repository collaborators.",
    "documentation_url": "https://developer.github.com/v3"
  }
  </code></pre>
  
  <p>How do I get push access? Do I need to become a collaborator myself? A bit too much just to get a list of a project's contributors.</p>