How to Authorize API Requests in Postman

preview_player
Показать описание
Welcome to Part 2 of our New to Postman Series! In this video, we’ll guide you through the process of authorizing an API request using OAuth 1 in Postman. Learn how to securely authenticate your requests and manage credentials efficiently using environment variables.

✅ What You’ll Learn in This Video:
- Setting up OAuth 1 for API requests
- Using Postman’s authorization helpers to simplify the process
- Storing API credentials (consumer key, access tokens, etc.) in environment variables
- Sending requests to the Twitter API and retrieving user information
- How to chain responses for your next API calls

📚 Chapters:
00:00 - Introduction
00:15 - Overview of Authorization Methods
00:30 - Using the Twitter API
00:59 - Setting Up Postman App
01:17 - Saving the First Request
01:33 - Sending the Second Request
01:54 - Using Environment Variables
02:44 - Setting Up OAuth 1
03:23 - Adding Twitter Credentials as Variables
04:17 - Authorizing the Request
04:39 - Inspecting the Response
05:02 - Next Steps and Saving the Request
05:10 - Recap and What's Next

📖 Related Topics Covered:
- Adding and managing variables in Postman
- Configuring headers for OAuth 1
- Saving and organizing requests in a collection

💡 Helpful Links and Resources:

🔔 Subscribe and hit the notification bell to stay tuned for the rest of this 5-part series. Let’s master API testing with Postman together!
Рекомендации по теме
Комментарии
Автор

Make sure to change Authorization > Add authorization data to
-- to "Request Headers" (!!) from the default "Request Body / Request URL"

theorichardson
Автор

Just a heads up, Twitter now makes you request access and you are not given immediate access.

ChristopherWoodward
Автор

Very helpful but it took me several tries to get through this. For me the key labeled "screen_name" seems to require being "q" and I had to regenerate all my keys.

tonybeck
Автор

In 6.4.4 seems that env vars are not properly passed to OAuth. I have to pass keys directly, then it worked. Is it a bug or sth?

slothclaw
Автор

Where is located the values for ConsumerKey, ConsumerSecret, etc ? Do I have to have a developer Twitter account? Thanks

tbander
Автор

Seem to be getting Auth failures using OAuth1.0 - Getting a 401 Response with
{
"errors": [
{
"code": 32,
"message": "Could not authenticate you."
}
]
}

johnkilbride
Автор

Also this is not helpful to follow and have to find alternates for those that don't have twitter

EmmaFrost
Автор

Around 3:00 ‘It’s not super easy to read and it’s kinda gross’. Sorry I’m not a 12 year old ... is this what our world has come to? Facebook, social debutantes and the Kardashian? Wonderful I say! Wonderful!!! ‘Like - Over and out ya know’...

Daviddavidis
Автор

Man, This video was great, but she talks too fast! WOW

vainilk
Автор

I guess Postman doesn't have the know how to build APIs to use in these demos? Like many, I don't have an account with Google twitter etc.
And slow down!!!!

MarkUKInsects