Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I open my email thread in Gmail App If I have id or threadId?

I am using gmail APIs in my android app and I am able to get id and threadId.So is there any way I can populate gmail using these ids.

like image 229
Harry Mad Avatar asked Nov 20 '25 09:11

Harry Mad


1 Answers

Once you have the messageId representing the message you want, you can simply use the Users.messages: get-operation to get the email. You could either do the request manually

GET https://www.googleapis.com/gmail/v1/users/me/messages/<MESSAGE_ID>

or with the help of a library:

Message message = service.users().messages().get('me', messageId).execute();

If you want to get all the mails in the thread, it is just as easy to do that also.

Look at code examples and explore the API in the links I provided.

like image 176
Tholle Avatar answered Nov 21 '25 22:11

Tholle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!