title: Linux command to use gmail API
body: <p>I am trying to use #gmail-api to retrieve the info in my profile:
  GET <a href="https://www.googleapis.com/gmail/v1/users/userID/profile" rel="nofollow">https://www.googleapis.com/gmail/v1/users/userID/profile</a>
  But when I run it I get:</p>
  
  <pre><code>{
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "required",
      "message": "Login Required",
      "locationType": "header",
      "location": "Authorization"
     }
    ],
    "code": 401,
    "message": "Login Required"
   }
  }
  </code></pre>
  
  <p>Any help would be appreciated!
  Thx!</p>