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

Опубликовано: 12 Август 2021
на канале: CodeSpace
25,687
139

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) : https://amzn.to/3bzeIZo

Boya BYM1 Omnidirectional Lavalier Condenser Microphone with 20ft Audio Cable (Black) : https://amzn.to/2DCUm4U

Canon EOS 200D II 24.1MP Digital SLR Camera + EF-S 18-55mm f4 is STM Lens (Black) : https://amzn.to/3buyx3T

Samsung Galaxy S20 (Cosmic Gray, 8GB RAM, 128GB Storage) with No Cost EMI/Additional Exchange Offers : https://amzn.to/3bssa12

Benro T880EX Digital Tripod Kit : https://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 : https://amzn.to/3fX8k1a

Logitech MK345 Wireless Combo – Full-Sized Keyboard with Palm Rest and Comfortable Right-Handed Mouse : https://amzn.to/3bD13Aw

------------------------------------------------
Follow me on:
❤️ Youtube : https://youtube.com/codespace?sub_con...
❤️ Facebook :   / e.codespace  
❤️ LinkedIn :   / gourabpaul  
❤️ Twitter :   / gourab_p  
-----------------------------------------------
#postman #postmanEnv
#workFromHome #workForHome


Смотрите видео How to update environment variables based on a response in Postman | Chaining Requests онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodeSpace 12 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 25,687 раз и оно понравилось 139 людям.