Postman Tutorial - OAUTH 2.0 Authorization using Gmail API

Поділитися
Вставка
  • Опубліковано 17 сер 2020
  • Learn how to use OAUTH2.0 Authorization for Gmail API requests.
    Useful Google API URLs:
    Google API Dashboard - console.developers.google.com...
    Google API Reference -developers.google.com/gmail/a...
    Google API Auth Scopes - developers.google.com/gmail/a...
    Details to Get New Access Token in Postman:
    Callback URL- oauth.pstmn.io/v1/callback
    Auth URL - accounts.google.com/o/oauth2/...
    Access Token URL - accounts.google.com/o/oauth2/...
    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 UA-cam 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

  • @BitterHippo
    @BitterHippo 3 роки тому +2

    Slick tutorial, my dude. Thanks for making it.

  • @yogeshjadhav5468
    @yogeshjadhav5468 3 роки тому +2

    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

  • @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!

  • @metamototomo
    @metamototomo 3 роки тому

    Thank you for this tutorial. It really helped me to start using Postman quickly :)

  • @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!

  • @MrJamieBort
    @MrJamieBort 2 роки тому

    This was a HUGE help. Thank you.

    • @QASCRIPT
      @QASCRIPT  2 роки тому

      Glad to hear that.

  • @wahidsafi705
    @wahidsafi705 2 роки тому +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.

  • @shreyshreyansh
    @shreyshreyansh 2 роки тому

    Simply perfect.. thank u so so much u save my time

    • @QASCRIPT
      @QASCRIPT  2 роки тому

      Glad it was helpful

  • @quad_vision4393
    @quad_vision4393 Рік тому

    Works like a charm! Ty sir 🔥

  • @user-ue2qx9pl5c
    @user-ue2qx9pl5c 2 роки тому

    It's awesome, million's thanks!

  • @claudineievangelistanascim2562
    @claudineievangelistanascim2562 3 роки тому +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 роки тому +1

      Thanks for sharing your feedback here...

  • @pramodkajla
    @pramodkajla 3 роки тому

    Thanks a lot. It was really helpful.

  • @thompchar
    @thompchar Рік тому

    Thanks so much. I had to add the scope in the Developer Console

  •  Рік тому

    Hi!
    This was great! It solved my problem!
    Thanks!

    • @QASCRIPT
      @QASCRIPT  Рік тому +1

      Glad to know it solved your problem

  • @vishwavaranasi6120
    @vishwavaranasi6120 2 роки тому

    excellent video and every step clearly explained

  • @RichardRebeco
    @RichardRebeco Рік тому

    thanks a lot dude. God bless you forever and ever 🙏

  • @SuperPradeep21
    @SuperPradeep21 2 роки тому

    Awesome content - Thank you so much.

    • @QASCRIPT
      @QASCRIPT  2 роки тому

      Glad you liked it!

  • @DigitalRightsGuy
    @DigitalRightsGuy Рік тому

    Awesome thanks!

  • @marcusmors8485
    @marcusmors8485 3 роки тому +1

    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!

  • @djaouidakharchi4024
    @djaouidakharchi4024 2 роки тому

    Thank u!!

  • @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.

  • @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

  • @rameshkvaw542
    @rameshkvaw542 2 роки тому

    Thanks thanks alot bro

  • @WriteCodeWithPrince
    @WriteCodeWithPrince 3 роки тому

    Very Nice

  • @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.

  • @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

  • @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

  • @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.

  • @surendrann2648
    @surendrann2648 3 роки тому +1

    Hi, When trying to connect to anther email it's not working., How to create an access token for different user

    • @QASCRIPT
      @QASCRIPT  3 роки тому +1

      Try creating a new token as it gets expired after some time.

  • @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.

  • @smathers3104
    @smathers3104 3 роки тому +2

    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 роки тому +1

      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.

  • @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

  • @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.

  • @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

  • @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

  • @smjtechie9496
    @smjtechie9496 3 роки тому

    Thanks a lot!!
    Please let me know how to get grant type as client credentials?

    • @QASCRIPT
      @QASCRIPT  3 роки тому +1

      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 роки тому +1

      For Basic Authorization, please refer to this video - ua-cam.com/video/mc3VVGcyP1Q/v-deo.html

    • @smjtechie9496
      @smjtechie9496 3 роки тому

      @@QASCRIPT Thank you!!

  • @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.

  • @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 роки тому +4

      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 - ua-cam.com/video/mc3VVGcyP1Q/v-deo.html

    • @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

  • @indiacricketclub2212
    @indiacricketclub2212 Рік тому

    Hi sir, please upload video to OAuth2. 0 authorization using UA-cam...

    • @QASCRIPT
      @QASCRIPT  Рік тому

      Sure. Will try to upload soon

  • @sarveshnaik1762
    @sarveshnaik1762 7 місяців тому

    make a video on sending a email with attachement using gmail api and postman tool

    • @QASCRIPT
      @QASCRIPT  6 місяців тому

      Sure. Will do

  • @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

  • @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 - ua-cam.com/video/3TIoQu-tHZs/v-deo.html

  • @vijayuttekar2108
    @vijayuttekar2108 3 роки тому

    Thanks !! any link to learn Oauth

    • @QASCRIPT
      @QASCRIPT  3 роки тому

      Take a look at this - aaronparecki.com/oauth-2-simplified/

  • @pm-nk6tp
    @pm-nk6tp 9 місяців тому

    Can you explain how to use next page token ?

  • @carriehammel2755
    @carriehammel2755 2 роки тому

    Tip: Add the email for the gmail account under test user

    • @QASCRIPT
      @QASCRIPT  2 роки тому

      Thanks for providing the valuable tip

  • @tkakki1
    @tkakki1 Рік тому

    how to use the API to send emails from POSTMAN?

    • @QASCRIPT
      @QASCRIPT  Рік тому

      Please check the API documentation for Google

  • @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