How to update environment variables based on a response in Postman | Chaining Requests

Поділитися
Вставка
  • Опубліковано 11 сер 2021
  • Sometimes, the response from a request is required first in order to continue with all the other API requests currently stored in your Postman folders. Think of a request that, in order to return results, it requires from you to be authenticated, so a typical workflow would be:
    authenticate yourself with a proper username and password;
    get an authentication token;
    update your other requests to use this new token.
    To avoid updating manually all your request headers with the new auth token, you can use environments and variables in Postman.
    Join this channel to get access to perks and giveaways:
    / @codespace
    ----------------------------------------
    ⚙️Gears used⚙️
    DJI Osmo Mobile 3 Handheld Smartphone Gimbal (Grey) : amzn.to/3bzeIZo
    Boya BYM1 Omnidirectional Lavalier Condenser Microphone with 20ft Audio Cable (Black) : amzn.to/2DCUm4U
    Canon EOS 200D II 24.1MP Digital SLR Camera + EF-S 18-55mm f4 is STM Lens (Black) : amzn.to/3buyx3T
    Samsung Galaxy S20 (Cosmic Gray, 8GB RAM, 128GB Storage) with No Cost EMI/Additional Exchange Offers : amzn.to/3bssa12
    Benro T880EX Digital Tripod Kit : amzn.to/3bzGzsb
    HP Envy 15-ep0123TX 15.6" (39.62cms) Laptop (10th Gen i7-10750H/16GB/1TB SSD/Windows 10 Home/NVIDIA 1660Ti 6 GB Graphics), Natural Silver : amzn.to/3fX8k1a
    Logitech MK345 Wireless Combo - Full-Sized Keyboard with Palm Rest and Comfortable Right-Handed Mouse : amzn.to/3bD13Aw
    ------------------------------------------------
    Follow me on:
    ❤️ UA-cam : ua-cam.com/users/codespace?sub_con...
    ❤️ Facebook : / e.codespace
    ❤️ LinkedIn : / gourabpaul
    ❤️ Twitter : / gourab_p
    -----------------------------------------------
    #postman #postmanEnv
    #workFromHome #workForHome
  • Наука та технологія

КОМЕНТАРІ • 32

  • @ss11235
    @ss11235 5 місяців тому

    I am in networking and do not use postman so often. never automation, but had to try it to test a customer issue.
    i encountered all the errors you faced here since last couple of weeks and I was able to relate each error as it happened to you, but finally very happy that you found the solution which worked for me too

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

    This was good thank you! For the first few mins, I was thinking if I was on the right channel or not? ;-)

  • @davidteixeirademasin5140
    @davidteixeirademasin5140 2 роки тому +1

    Thank you for your explanation! You're GREAT!!!

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

    Thanks, bro you have explained very well and very helpful

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

      My pleasure. Please do support me by subscribing to my other youtube channel oyekool ua-cam.com/users/oyekool

  • @mhoskins555
    @mhoskins555 10 місяців тому

    Thanks, just what I needed.

  • @user-fw9pg9lu2i
    @user-fw9pg9lu2i 8 місяців тому

    If I have two different collections and two different environments, I want to connect the 1st collection with the 1st environment and the 2nd collection with the 2nd environment for all time. Is this possible?

  • @jahnujahnu2363
    @jahnujahnu2363 2 роки тому +1

    Hi bro.. work area setup is nice👍.. especially the chair...

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

    How do you save response variables from the Outh connection response? I can only get this working on other requests after the Oauth connection.
    This script only needs to run if it's recognized as OauthHeader that way it does not throw off other requests. Greatly appreciate a sample of saving Oath connection response. Thanks.

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

      exactly the same way. are you lost?

  • @ericv.3647
    @ericv.3647 2 роки тому +1

    I recommend using a lower resolution on the monitor because the fonts are so small it is difficult to see.

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

      Noted. Thanks for your feedback 🙂

  • @manqobadlamini2207
    @manqobadlamini2207 2 роки тому +1

    Thanks!

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

    Hi bro, I am planning to buy new monitor for my wfh setup....I am little confused whether intellij eclipse ide supports high resolution and wide screen...can you suggest some good monitors...and which model you are using it? Thank you.

    • @codespace
      @codespace  2 роки тому +1

      Budget! And inch! And any port specifications

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

      @@codespace budget between 15k to 35k...hdmi..inches 24 minimum...

    • @codespace
      @codespace  2 роки тому +1

      I am using hp 27m. But i will suggest dell which has type c port
      Dell 27 USB-C Monitor: P2719HC www.amazon.in/dp/B07GDR6TJJ/ref=cm_sw_r_apan_glt_fabc_X03YSYYZYFE9PVMY9EN7

    • @janakissr1836
      @janakissr1836 2 роки тому +1

      @@codespace Ok. Thank you. Thanks for your time spent. 👍

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

    thanks for the help

  • @anjanx44
    @anjanx44 9 місяців тому

    it help me also.

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

    01:48 still talking about his setup

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

    Are going to talk about your home or Postman?

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

    show!

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

    OMG get to the point

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

    สุดจัด thank you