title: 401 ( Unauthorised ) error when using jQuery's $.get and GMail API
body: <p>I'm trying to run jQuery's $.get after having a user log in with the G+ API with javascript, but am getting a 401 ( unauthorised ) error in the browser console.</p>
  
  <p>Here is the format of the url I am requesting: <code>https://www.googleapis.com/gmail/v1/users/myusername%40gmail.com/messages?key=%7Bmyborwserapikey%7D</code></p>
  
  <p>I've also tried <code>https://www.googleapis.com/gmail/v1/users/me/messages?key=%7Bmyborwserapikey%7D</code></p>
  
  <p>both are returning the 401 error after logging in.</p>