How to use GitHub API in Postman
<p>I would like to get a list of public gists in Postman.
I can do <code>curl https://api.github.com/gists/public</code> in my command line which works fine.</p>

<p>However I did not manage to find out how to do the same in Postman. </p>

<p>I tried to make a GET request at <code>https://api.github.com/gists/public</code> which returned the following object:</p>

<pre><code>{
  "message": "Bad credentials",
  "documentation_url": "https://developer.github.com/v3"
}
</code></pre>

<p>I find it confusing to not to be required to authenticate when making the request from command line but when I would like to do basically the same from Postman it throws an error. But ok, I tried to authenticate myself.</p>

<p>I have created an OAuth application in my GitHub so I recieved a Client ID and Client Secret.</p>

<p>I have tried to pass these to my requests as query params / header information / and also as part of the body without any success.</p>

<p>I also have tried to use the web application flow (<a href="https://developer.github.com/v3/oauth/#web-application-flow" rel="noreferrer">https://developer.github.com/v3/oauth/#web-application-flow</a>), and tried to create a new authorization with sending a POST request to <code>https://api.github.com/authorizations</code> with my User ID and User Secret in it (<a href="https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization" rel="noreferrer">https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization</a>), which returned</p>

<pre><code>{
  "message": "Requires authentication",
  "documentation_url": "https://developer.github.com/v3/oauth_authorizations/#oauth-authorizations-api"
}
</code></pre>

<p>Now I am super confused about what should generate my token, and where should I pass it to. All I want is some public information (public gists) in Postman, the same as in command line.</p>