I'm trying to read gmail message using GmailAPI. I successfully got the message object.
I've the object com.google.api.services.gmail.model.Message
and its .toString() resulting
{"id":"157433a7e******","threadId":"157433a7e******"}
But i'm unable to read the contents of the object message.getPayload()
is returning null, .getSnippet()
is returning null, .getRaw()
is also returning null
I've tried other ways as mentioned in
How to get full message body in Gmail?
I want to know the mail subject, dates, sender, label, body
Can some one gives me any pointer?
This is the project source I'm using
com.google.api-client %% google-api-client %% 1.22.0
com.google.oauth-client %% google-oauth-client-jetty %% 1.22.0
com.google.apis %% google-api-services-gmail %% v1-rev48-1.22.0
Thanks In Advance