No video

Postman Tutorial - OAUTH 2.0 Authorization using Gmail API

  Рет қаралды 83,802

QASCRIPT

QASCRIPT

4 жыл бұрын

Learn how to use OAUTH2.0 Authorization for Gmail API requests.
Useful Google API URLs:
Google API Dashboard - console.develo...
Google API Reference -developers.goo...
Google API Auth Scopes - developers.goo...
Details to Get New Access Token in Postman:
Callback URL- oauth.pstmn.io...
Auth URL - accounts.googl...
Access Token URL - accounts.googl...
Scope: https - //www.googleapis.com/auth/gmail.modify
Found this video interesting - Please Like and Share the video.
Have Feedback/Questions - Leave a comment below.
Subscribe our KZbin Channel - / @qascript
Get access to 100 plus videos on different automation tools. Also never miss out on any new video posted on our channel.
Other Video Playlists on our Channel:
Selenium:
• Selenium Webdriver Aut...
Jenkins 2.0:
• Jenkins 2.0 & DevOps: ...
Maven:
• Mastering Maven and Co...
Blog Site: qascript.com

Пікірлер: 125
@wahidsafi705
@wahidsafi705 2 жыл бұрын
Thanks for sharing such a rich content bro, Just in case anyone not getting verified pop-up in postman and able to get in chrome, make sure you disable "SSL certificate verification" under postman settings.
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Thanks for your inputs. Much appreciated.
@pur3D3votion
@pur3D3votion Жыл бұрын
Still holds up after this time and great work in explaining the steps! This helps a lot for someone trying to learn development coming from an infra background!
@QASCRIPT
@QASCRIPT Жыл бұрын
Glad it was helpful
@yogeshjadhav5468
@yogeshjadhav5468 3 жыл бұрын
You have really done a great job. Very nice explanation & good efforts are taken by you. Thanks a lot.
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Thanks and welcome
@BitterHippo
@BitterHippo 3 жыл бұрын
Slick tutorial, my dude. Thanks for making it.
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Any time!
@thompchar
@thompchar Жыл бұрын
Thanks so much. I had to add the scope in the Developer Console
@QASCRIPT
@QASCRIPT Жыл бұрын
Glad I could help
@carloseduardorodriguezlope6707
@carloseduardorodriguezlope6707 2 жыл бұрын
Thank you really! I was still trying to do it and you explain it really easy! Now I need to use this to recover my mailing application... THANK YOU!
@QASCRIPT
@QASCRIPT 2 жыл бұрын
You're welcome!
@claudineievangelistanascim2562
@claudineievangelistanascim2562 3 жыл бұрын
Very good class. 🙏 Thanks for sharing knowledge. I would like to add that it is necessary to unblock the web browser popup to send informations and call the postman. Sucess for you QASCRIPT
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Thanks for sharing your feedback here...
@vishwavaranasi6120
@vishwavaranasi6120 2 жыл бұрын
excellent video and every step clearly explained
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Glad you liked it
Жыл бұрын
Hi! This was great! It solved my problem! Thanks!
@QASCRIPT
@QASCRIPT Жыл бұрын
Glad to know it solved your problem
@MrJamieBort
@MrJamieBort 2 жыл бұрын
This was a HUGE help. Thank you.
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Glad to hear that.
@metamototomo
@metamototomo 3 жыл бұрын
Thank you for this tutorial. It really helped me to start using Postman quickly :)
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Glad it helped!
@shreyshreyansh
@shreyshreyansh 2 жыл бұрын
Simply perfect.. thank u so so much u save my time
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Glad it was helpful
@RichardRebeco
@RichardRebeco Жыл бұрын
thanks a lot dude. God bless you forever and ever 🙏
@QASCRIPT
@QASCRIPT Жыл бұрын
You're welcome!
@quad_vision4393
@quad_vision4393 Жыл бұрын
Works like a charm! Ty sir 🔥
@QASCRIPT
@QASCRIPT Жыл бұрын
Welcome 👍
@SuperPradeep21
@SuperPradeep21 2 жыл бұрын
Awesome content - Thank you so much.
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Glad you liked it!
@user-ue2qx9pl5c
@user-ue2qx9pl5c 2 жыл бұрын
It's awesome, million's thanks!
@QASCRIPT
@QASCRIPT 2 жыл бұрын
You're welcome!
@DigitalRightsGuy
@DigitalRightsGuy Жыл бұрын
Awesome thanks!
@QASCRIPT
@QASCRIPT Жыл бұрын
Welcome
@WriteCodeWithPrince
@WriteCodeWithPrince 3 жыл бұрын
Very Nice
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Thanks
@pramodkajla
@pramodkajla 3 жыл бұрын
Thanks a lot. It was really helpful.
@QASCRIPT
@QASCRIPT 3 жыл бұрын
You are welcome!
@rameshkvaw542
@rameshkvaw542 2 жыл бұрын
Thanks thanks alot bro
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Happy to help
@jakareyaporosh7396
@jakareyaporosh7396 Жыл бұрын
Thanks for the detailed video. My question is can I run this on any CI pipeline and how?
@QASCRIPT
@QASCRIPT Жыл бұрын
Yes you can!. You can integrate postman cli with Jenkins
@djaouidakharchi4024
@djaouidakharchi4024 2 жыл бұрын
Thank u!!
@QASCRIPT
@QASCRIPT 2 жыл бұрын
You're welcome!
@marcusmors8485
@marcusmors8485 3 жыл бұрын
Thank you, good man. am very glad you shared this 😀, now am struggling with turning the message body into readable text he he. good luck!
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Glad it was helpful!
@surendrann2648
@surendrann2648 3 жыл бұрын
Hi, When trying to connect to anther email it's not working., How to create an access token for different user
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Try creating a new token as it gets expired after some time.
@smathers3104
@smathers3104 3 жыл бұрын
I get error : The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. I followed the same step you did in setting up GMail API credentials. any idea why? Great video by the way
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Thanks!!! Can you try adding your email address to the test users under the OAuth consent screen for the application you created?. Some of the other users were able to resolve the issue in this way.
@smathers3104
@smathers3104 3 жыл бұрын
@@QASCRIPT hey thanks for speedy response. I did solve it. I did add my email address to the test users. This is the email address I use when I am logged into Integromat, however it is not the email account I am linking to in my Integromat scenario....when I added the test email account address to the test users, the Integrmat scenario was able to read the inbox. So I was close but needed to use the email address of the gmail account I was trying to read from, not the one I was logged in as.
@sarveshnaik1762
@sarveshnaik1762 7 ай бұрын
make a video on sending a email with attachement using gmail api and postman tool
@QASCRIPT
@QASCRIPT 7 ай бұрын
Sure. Will do
@user-lo6ki1pi2i
@user-lo6ki1pi2i 7 ай бұрын
is it possible to generate token without browser authentication ? only with clientId and clientSecret
@QASCRIPT
@QASCRIPT 7 ай бұрын
It is required for OAuth Authorization
@jn10r72
@jn10r72 3 жыл бұрын
How did you determine the correct redirect URI in this example using postman? If I was using another API client (something other than postman) to explore another API service provider (Facebook or Twitter) how would I determine the redirect URI?
@QASCRIPT
@QASCRIPT 3 жыл бұрын
As far as I know there is no specific source of this information available anywhere. I had to do some research in order to find the redirect URI for Gmail. I guess we need to do the same for other service providers like Facebook or Twitter.
@ChauhanManish1802
@ChauhanManish1802 3 жыл бұрын
API provider must give this info to you.
@carriehammel2755
@carriehammel2755 2 жыл бұрын
Tip: Add the email for the gmail account under test user
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Thanks for providing the valuable tip
@indiacricketclub2212
@indiacricketclub2212 Жыл бұрын
Hi sir, please upload video to OAuth2. 0 authorization using KZbin...
@QASCRIPT
@QASCRIPT Жыл бұрын
Sure. Will try to upload soon
@3Eternus
@3Eternus 3 жыл бұрын
Is there a way to increase the token time? it expires after an hour ? authenticating via the browser isnt working for my tests so im trying to write a test that gets the token variable and uses it in these requests..
@QASCRIPT
@QASCRIPT 3 жыл бұрын
We cannot increase the token time but you can use the refresh token
@hasibulmondal4497
@hasibulmondal4497 2 жыл бұрын
I am trying to acess an api through Oauth 2.0 to test it on Postman and there I need webhook url for incoming response from the api. Can you tell me how to get this Webhook uri?
@QASCRIPT
@QASCRIPT 2 жыл бұрын
You need to get the webhook uri either from the API documentation or the developers.
@mail4mak
@mail4mak 3 жыл бұрын
when i pass {{userid}} it give 403 error but works fine when i hard code the email in the get URL, can you let me know what could the issue be , i have followed exactly the same steps
@QASCRIPT
@QASCRIPT 3 жыл бұрын
You need to add the {{userid}} in the environment variable for your Collection
@pm-nk6tp
@pm-nk6tp 10 ай бұрын
Can you explain how to use next page token ?
@QASCRIPT
@QASCRIPT 9 ай бұрын
Soon
@nileshz4u
@nileshz4u 2 жыл бұрын
I am getting below error message while postman authorization. Authorization Error Error 400: redirect_uri_mismatch You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. Can you please help with this.
@nileshz4u
@nileshz4u 2 жыл бұрын
Issue is resolved.
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Great
@manuelferraretto7208
@manuelferraretto7208 Жыл бұрын
@@nileshz4u Hi, could you tell me how you resolved the issue. Thanks.
@roopasree9054
@roopasree9054 3 жыл бұрын
In general from where do we get the Auth URL and Access Token URL? The one which you mentioned, is it common for all api's?
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Unfortunately I've not found any common place where you will get Auth URL for all APIs and it needs some researching. The one I've mentioned is specific for Google APIs.
@roopasree9054
@roopasree9054 3 жыл бұрын
@@QASCRIPT Call authentication is successful in browser but not in Postman. In postman it is throwing error. Can you provide me a solution to fix it
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Please enable the browser popups for postman and try again.
@satishpericherla9320
@satishpericherla9320 3 жыл бұрын
Thank you mate for this class. Once I am redirected to google to login to my account - I get access denied and app has not been verified yet. No way to get over that stage. Any suggestions please?
@satishpericherla9320
@satishpericherla9320 3 жыл бұрын
Hey Brother thank you for answering to comments. One of the people here had the same issue and I ready your reply. Just had to add my email id to test users in auth consent and it worked. Yahoo. you are a life saver mate. Anything I can do to help. Do email me anytime mate.
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Thanks Satish. Glad it worked out for you.
@nishajain7538
@nishajain7538 3 жыл бұрын
hi when i am trying to get access token it shows do it again i tried it alot of times but its not working how to get access token?
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Please make sure you have enabled the browser popups for Postman
@itssjwrld
@itssjwrld 3 жыл бұрын
When i Authorize by selecting a account then it gives error 403 and it won't give this advance option i tried many times any suggestions please help.
@QASCRIPT
@QASCRIPT 3 жыл бұрын
You can resolve it by adding your email address to the test users under the OAuth consent screen application.
@smjtechie9496
@smjtechie9496 3 жыл бұрын
Thanks a lot!! Please let me know how to get grant type as client credentials?
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Did not get your question. Can you please elaborate ?.
@smjtechie9496
@smjtechie9496 3 жыл бұрын
@@QASCRIPT I mean how we can call a rest API authorization basic and grant type is client credentials
@QASCRIPT
@QASCRIPT 3 жыл бұрын
For Basic Authorization, please refer to this video - kzbin.info/www/bejne/o5SWh4l9mN6DZ7M
@smjtechie9496
@smjtechie9496 3 жыл бұрын
@@QASCRIPT Thank you!!
@tkakki1
@tkakki1 Жыл бұрын
how to use the API to send emails from POSTMAN?
@QASCRIPT
@QASCRIPT Жыл бұрын
Please check the API documentation for Google
@raviboddupally6407
@raviboddupally6407 2 жыл бұрын
How can we send a tweet in twitter using postman post API. Can you please explain it.
@QASCRIPT
@QASCRIPT 2 жыл бұрын
Check out this video - kzbin.info/www/bejne/aYWsoISrYtl7kNU
@LanNguyen-fz5jc
@LanNguyen-fz5jc 3 жыл бұрын
hi, Callback URL / Auth URL: Can you tell me where can I get them?
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Hi Lan. Its already mentioned in the video description. Below are the details: Callback URL- oauth.pstmn.io/v1/callback Auth URL - accounts.google.com/o/oauth2/auth
@ManishKumar-initial
@ManishKumar-initial 3 жыл бұрын
can u tell me about the payload of send email of gmail api
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Refer to this page - developers.google.com/gmail/api/reference/rest/v1/users.messages/send
@toma9129
@toma9129 3 жыл бұрын
I have followed the tutorial twice but still get the same problem when trying to get new access token. I get redirected to gmail login page but when trying to log into my account: Error 403. What could be the problem?
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Hi Tom. There may be some issue with your Gmail Account. Can you please try with a different gmail account ?
@ibra.stacks
@ibra.stacks 3 жыл бұрын
I had the same issue, I fixed it by adding my email address to the test users under the OAuth consent screen application that I created.
@vitalypedash
@vitalypedash 3 жыл бұрын
@@ibra.stacks Thanks a lot! You saved my day!
@toma9129
@toma9129 3 жыл бұрын
@@ibra.stacks Yes, this solved it for me too. Thank you for sharing the solution.
@sriravali8986
@sriravali8986 3 жыл бұрын
@@ibra.stacks Thank you for putting it out here. I was stuck at the same step and this resolved it for me.
@rohitjakhar6672
@rohitjakhar6672 3 жыл бұрын
I am using udemy api they also use oauth2.0 but they give only client id and secret key not any other details or no documentation for that How i implement that type authentication in postman
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Hi Rohit. I've checked Udemy API and it seems Udemy Affiliate API requires basic authentication parameters to validate the client. So you can directly use your Client ID and Secret to authenticate your requests using Basic Auth in Postman. You can check our video on how to use Basic Authorization in Postman here - kzbin.info/www/bejne/o5SWh4l9mN6DZ7M
@rohitjakhar6672
@rohitjakhar6672 3 жыл бұрын
@@QASCRIPT thank you sir so much
@rohitjakhar6672
@rohitjakhar6672 3 жыл бұрын
@@QASCRIPT I watch video and try it but not working please make video on it
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Sure Rohit. Will make a video as soon as I get some time.
@rohitjakhar6672
@rohitjakhar6672 3 жыл бұрын
@@QASCRIPT thanks sir
@vijayuttekar2108
@vijayuttekar2108 3 жыл бұрын
Thanks !! any link to learn Oauth
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Take a look at this - aaronparecki.com/oauth-2-simplified/
@archanasubramanyam8848
@archanasubramanyam8848 3 жыл бұрын
Hi there, Thank you for the video was helpful. However, I am stuck at a point would need your help. Error : { "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See developers.google.com/identity/sign-in/web/devconsole-project.", "errors": [ { "message": "Login Required.", "domain": "global", "reason": "required", "location": "Authorization", "locationType": "header" } ], "status": "UNAUTHENTICATED" } } ------ I click on Get New Access Token -> Select Account -> Advanced -> click on Go to pstmn.io (unsafe)-> Grant pstmn.io permission View and modify but not delete your email -> Allow -> It says authentication with green tick and immediately throws error shown up. One thing I want to keep you posted, In consent form I have enabled the Scope -> not sure if there is something missing there.
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Check your browser security settings as it might be blocking Postman connection as it seems the authentication call was not successful.
@matejatrikich97
@matejatrikich97 3 жыл бұрын
Do a same one just for how to send the message from OAuth2 playground
@QASCRIPT
@QASCRIPT 3 жыл бұрын
Sure. Will try to pick it up soon.
@coloradovermelho4789
@coloradovermelho4789 Жыл бұрын
OMG... the auth autentication leave the developement so complicated... Thas should't be the idea for APIs
@QASCRIPT
@QASCRIPT Жыл бұрын
Agreed.
Postman Tutorial - Authorize API Requests using Basic Auth
7:44
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 37 МЛН
天使救了路飞!#天使#小丑#路飞#家庭
00:35
家庭搞笑日记
Рет қаралды 63 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 14 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 6 МЛН
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 120 М.
OAuth 2.0 Authorization Flow using the Dropbox API and Postman
32:38
Valentin Despa
Рет қаралды 30 М.
How to send email using Gmail API (uses OAuth2 and nodemailer)
17:55
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 35 М.
What is OAuth2? How does OAuth2 work? | Naveen AutomationLabs
19:56
Naveen AutomationLabs
Рет қаралды 68 М.
Google OAuth 2.0 With NodeJS (No Passport or googleapis)
57:18
TomDoesTech
Рет қаралды 94 М.
Gmail Api With Node Js: Sending, Reading & More!
1:35:28
CodeWithKrishnendu
Рет қаралды 1,8 М.
How to Create Events in Google Calendar API using OAuth2.0
1:00:51
Mafia Codes
Рет қаралды 90 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 37 МЛН