title: gmail API : Cannot access the list of messages I requested
body: <p>So what I'm trying to do is to fetch data from gmail API using unix's shell (curl).</p>
  
  <p>I simply copied this from the json generator to be able to play with the json when I used with curl.</p>
  
  <pre><code>GET https://www.googleapis.com/gmail/v1/users/somebody%40gmail.com/messages?
  maxResults=5&amp;includeSpamTrash=false&amp;key={YOUR_API_KEY}
  </code></pre>
  
  <p>Then I changed the API_KEY by what I was able to generate in my developer console. However, I cannot get the desired json when I put the link in my browser, or curl it in my shell. How do I generate the right key? Because I already generated from all of the choices in the Credentials.</p>
  
  <p>Thanks! </p>