#11. OAuth 2.0 | Send An Email With Attachment via Gmail Api Using Postman| #oauth2 #gmail

preview_player
Показать описание
#oauth #oauth2 #googleapi #gmail #postman #apitesting #restassured #tester
In this video, I have explained how can we send an email using Gmail API with an attachment in Postman.

Raw Content Type -
Content-Type: multipart/mixed; boundary=foo_bar_baz
MIME-Version: 1.0
subject: POSTMAN Rest API Execution

--foo_bar_baz
this is mail with an attachment

--foo_bar_baz
Content-Type: application/png
MIME-Version: 1.0
Content-Transfer-Encoding: base64

##Paste file data base64 encoded##

--foo_bar_baz--

Reference Documents -

Gmail API -
Рекомендации по теме
Комментарии
Автор

Will the same hold from Browser Console of a third-party website using fetch API? In my case though the Postman thing works, fetch from Browser Console flash 401 error for reason unknown.

dipanwitadutta
Автор

Can you tell me a usecase where we use this while api testing? Are testing Google api here ?
How does this tutorial useful for api automation?

SingaporeChinnodu
Автор

Hey am not seeing the attachment but in mail .. whatever the raw code that is base 64 xode is itself getting reflected..so what is the solution

sarveshnaik
Автор

Can you explain how we can create GenerateRefreshToken?

bozomil
Автор

Can you help me to send an email with multiple attachments? Many thanks

duynguyenhoang
Автор

It doesn't send the message body when sending attachment

redtiger
Автор

Can anyone make this using Spring boot for me

ganeshKiD