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

  Рет қаралды 24,851

CodeSpace

CodeSpace

3 жыл бұрын

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:
❤️ KZfaq : kzfaq.info?sub_con...
❤️ Facebook : / e.codespace
❤️ LinkedIn : / gourabpaul
❤️ Twitter : / gourab_p
-----------------------------------------------
#postman #postmanEnv
#workFromHome #workForHome

Пікірлер: 32
@ss11235
@ss11235 7 ай бұрын
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 2 жыл бұрын
This was good thank you! For the first few mins, I was thinking if I was on the right channel or not? ;-)
@codespace
@codespace 2 жыл бұрын
My pleasure 😊
@davidteixeirademasin5140
@davidteixeirademasin5140 2 жыл бұрын
Thank you for your explanation! You're GREAT!!!
@codespace
@codespace 2 жыл бұрын
My pleasure 😊
@mhoskins555
@mhoskins555 Жыл бұрын
Thanks, just what I needed.
@nitishkumarjha7726
@nitishkumarjha7726 Жыл бұрын
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 kzfaq.info
@jahnujahnu2363
@jahnujahnu2363 3 жыл бұрын
Hi bro.. work area setup is nice👍.. especially the chair...
@codespace
@codespace 3 жыл бұрын
Thanks bru ☺️
@user-fw9pg9lu2i
@user-fw9pg9lu2i 10 ай бұрын
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?
@ericv.3647
@ericv.3647 2 жыл бұрын
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 жыл бұрын
Thanks!
@codespace
@codespace 2 жыл бұрын
My pleasure 😊
@mathiasbarreto7328
@mathiasbarreto7328 Жыл бұрын
thanks for the help
@codespace
@codespace Жыл бұрын
My pleasure 😊
@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?
@anjanx44
@anjanx44 11 ай бұрын
it help me also.
@jahnujahnu2363
@jahnujahnu2363 3 жыл бұрын
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 3 жыл бұрын
Budget! And inch! And any port specifications
@jahnujahnu2363
@jahnujahnu2363 3 жыл бұрын
@@codespace budget between 15k to 35k...hdmi..inches 24 minimum...
@codespace
@codespace 3 жыл бұрын
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 3 жыл бұрын
@@codespace Ok. Thank you. Thanks for your time spent. 👍
@Proviper666
@Proviper666 Жыл бұрын
Are going to talk about your home or Postman?
@codespace
@codespace Жыл бұрын
😄
@monkeycheeky6983
@monkeycheeky6983 Жыл бұрын
สุดจัด thank you
@Proviper666
@Proviper666 Жыл бұрын
01:48 still talking about his setup
@mauricioeugenio6743
@mauricioeugenio6743 Жыл бұрын
show!
@codespace
@codespace Жыл бұрын
🤔
@nabilaldhaleai5213
@nabilaldhaleai5213 Жыл бұрын
OMG get to the point
Loop request based on data from response in Postman
13:13
Valentin Despa
Рет қаралды 58 М.
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 4,7 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 38 МЛН
Working With Your Team in Postman | The Exploratory
12:05
Postman
Рет қаралды 3,5 М.
Pre-request Scripts in Postman | The Exploratory
8:10
Postman
Рет қаралды 20 М.
Use Response Data in a Request | Postman Flows
3:29
Postman
Рет қаралды 18 М.
POSTMAN - Send Request From Script | Using Pre-request or Test
21:35
Saravanan Seenivasan
Рет қаралды 9 М.
Postman Environment Variables: API Testing using Postman - (Part 4)
16:03
The Testing Academy
Рет қаралды 84 М.
Postman Beginner Tutorial 14 | How to Add Authorization in Postman
11:18
Automation Step by Step
Рет қаралды 164 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 612 М.
How to share oAuth access token with other API endpoints in Postman
8:43
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 817 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,7 МЛН