How to fetch Gmail Subject & Body using Gmail APIs || Gmail OAuth 2.0 APIs || NaveenAutomationLabs

preview_player
Показать описание
In this video, I have explained how to read emails from gmail domain using gmail apis.
Gmail uses OAuth 2.0 APIs to read/write the mail.
The Gmail API is a RESTful API that can be used to access Gmail mailboxes and send mail. For most web applications (including mobile apps), the Gmail API is the best choice for authorized access to a user's Gmail data.

Please find this GIT repo for the full code:

You can refer this Gmail API Guide:

========
~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
Рекомендации по теме
Комментарии
Автор

Hey, Naveen many many congrats for your achievement... There are very rare people like you who share such great knowledge... Thanks

dnyaneshwarrathod
Автор

Checking in to this very old video, this was a lifesaver thank you very much. Especially thanks for putting your project on git!

Dischade
Автор

Thank You Naveen sir for this video. thanks a lot.

tusharsingh
Автор

Thanks! I learned SO much from your demo, this helped me greatly.

Dischade
Автор

Hi Naveen, Thanks for putting your efforts and sharing videos related to automation testing. I would like to request you to please make a video or share a document related to programming interview questions for testers. Level of programming interview questions are high. Data structure and algorithm questions are being asked in interview from QA automation engineer in many good companies. How to get prepared for the same?

himanshusoni
Автор

Is there a way to read mime multipart/mixed email. I have searched for soultion but couldn't find one. When ever I try read such email it returns me complete raw HTML code

swethaswty
Автор

Hey, I am facing an issue if subject name has special character then it failed to find email subject for example kit - Reset Password

hz
Автор

Hi Naveen, i am not able to read the mail with subject Sandbox: Your Developer Edition Login Information" . Where as, I am able to read the other mails. Could you please suggest what might be issue . And why its not reading the mail even though we have mail with subject in inbox

nandinidyawarkonda
Автор

@Naveen I am getting error in this import statement import due to which not able to recognoze LocalServerReceiver class.. could u pls assist

manisharya
Автор

Hi naveen, if email subject contains hi - this- is- my- test- mail . it is throwing exception. Please comment on that

teamautomationt
Автор

Hi Naveen, this video really helped me, small query if image is present in the email body then how can we get the email content??

komalilimmu
Автор

This video is amazing for what i was looking for i am able to read content from gmail but if there is any attachment in mail then it's throwing an error otherwise its working fine

lakshayahuja
Автор

Hi sir, I have tried this flow to send email. It is working in local but when I have deployed the code servers, It's not working. Do you have source which is working in web.

foodmatter
Автор

Hello Sir Thank you so much for sharing this knowledge, Sir actually I am not able to get OTP related mails or which sent by other party but when I try to send mail itself and try to get it I am able to fetch the result in this scenario but for other emails "not found message" getting display, please suggest the solution.

ravimahobia
Автор

Hello Naveen Sir, Can you please help in doing the same in Selenium with C# too. Would be very helpful Sir.

testmail
Автор

Hi Naveen sir, In body if there is any different format of test or images it is throwing error do u have code for fetching the body in console if it has images or special type of texts

ArunkumarN-shzr
Автор

Do we have to hardcode the subject? if two subject is same, how to read both of them?

salibhaldar
Автор

Hi Naveen, Thanks a lot... Its working fine but when I triggered a simple text email by using Apache commons email then its not working. Can you please help me out.

mrsdet
Автор

Thanks Naveen, incredible!!! But can we follow same path for web server applications instead of desktop applications?

tusharrana
Автор

Hi Naveen, The above explanation is great!.. I want information about using the OAuth 2.0 with OpenID auth server!

kishorekumar