I'm working with the Gmail API in python, getting a request with:
gmail_auth = GmailUserSocialAuth.objects.filter(uid='...')[0]
response = gmail_auth.request('get', '...')
data = response.json()
response - gmail_auth.request('get', '/%s' % data['messages'][0]['id']
message = response.json()
When I print out the message, I get large large objects with all the fields and such. With one of the messages, I get this response:
{
... # a lot of fields
u'sizeEstimate': 10100,
'html_body': '',
'decoded_body': '',
u'snippet': u'Hi —, <content of email>. On Jun 30, 2016..., Ofek Gila <...> wrote: <content of previous email in thread>.',
}
Anyway, the issue is that I know the email was written because it appears in the snippet, but it doesn't show up anywhere else in the message object.
Any idea what could be happening?
Thanks in advance!