I\'m trying to use the Gmail API to get a user\'s email, grab the message subject and body, and then display it on a webpage. I\'ll be doing other stuff with it, but this is
Ah! I figured it out. parts is an array, so I should have been calling it like: gapi.client.gmail.users.messages.get({'id':
Now my problem is decoding the emails, which is proving successful in plain text emails, but failing in emails from non-personal locations (businesses, social media update emails, etc.). But I'll make a new question to get answers for that.