This tutorial was very helpful to finally get access to Flickr API. Also, in the new version of Postman, under Authorization, you can now add the callback URL. It won't work if you put it in params, in the newest version of Postman.
Thanks for showing this Valentin I was in desperation when I saw the flickr API was OAuth 1.0 as I'm much more familiar with OAuth 2.0 and Open ID Connect :)
You can avoid a nasty error Status: 401 Unauthorized oauth_problem=signature_invalid. To do this, select Add authorization data to: Request Headers in Authorization.
I changed Add authorization data to: Request Headers. But still have 401Unauthorized oauth_problem=verifier_invalid when trying to get access_token. What else can affect on that?
Hi, thanks for your effort. I have a question... Is it Possible to call an API within the Pre-request script synchronously? I need to set the environment variable token from that request then use it in the main request. Is it possible to do that or I need to chain the requests? I found pm.sendRequest but it's async
Yes, you can. AFAIK the "main" request does not start until the pre-request script is done. You can set the variable in the callback. Let me know if this does not work.
i also need a same for LTI APIs. it also uses oauth v1 but its has some extra steps in my opinion. this API used for Learning management system to access course contents. Many LMS provider are using LTI .like canvas, Whiteboard ,pearson. ETC please make a video on it
Hey! good video help me a lot, but i stuck at Step 3- Exchanging the Request Token for an Access Token, do all like in your video, but i have respond "Status: 401 Unauthorized oauth_problem=verifier_invalid"
Hi thanks for sharing this, it was really helpful. A question, say if I want to automate the user consent part within postman itself without manually opening a browser window - is this possible?
Hi, i want to upload a picture on flickr using the api, which token shall i use in the setToken function? I always get an error message saying you do not have permission.
It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@@vdespa it seems the problem lies in browser, browsers always throws CORS error. After getting desktop version it got fixed. Your video is one of the reason I'm gonna get selected for a internship, so thankyou
Hi, thanks for the nice video. But I am stuck at some point while requesting token. Though, I have specified all the parameters still meeting this error constantly: oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key%26oauth_signature%26oauth_signature_method%26oauth_nonce%26oauth_timestamp Any suggestions.
Why the Step 1 is needed? "When Your App first makes an API call for a request token. OAuth 2 doesn't have it and we can just simply redirect a user to the AS
@@vdespa I have seen it work, it is just hard to get there when starting from zero. i am much closer now, I have figured out for my use case that all I need to do is the signing implementation of Oauth 1.0. Do you know anywhere I can read up on implementing this inside AWS Lambda using Python? That is if you don't have any videos on that already.
@@vdespa I am reaching that conclusion as well. I may have to set up a server on an EC2 instance to get this done. Obviously I am trying to avoid that complexity and stay serverless, as that is the setup for this app. I'm adding calls to a service to it that unfortunately still uses the older Oauth 1.0 with no option for 2.0. Before I go the server route I am first trying to understand how to get the requests set up correctly, which will need to be done regardless of what path I take- it will still be just creating and signing appropriate headers, no need for user interaction during the process. If you have any resources or videos on that use case please let me know. Thanks for your replies.
👉 Want to learn more about Postman? Check my Postman online course.
www.udemy.com/course/postman-the-complete-guide/?referralCode=4E8B90BA4B5EE8DA9237
@@oliverjohnny1173 great job 👍
This tutorial was very helpful to finally get access to Flickr API. Also, in the new version of Postman, under Authorization, you can now add the callback URL. It won't work if you put it in params, in the newest version of Postman.
I am glad it helped. Thanks for sharing the issue with the callback url.
I was stuck. Then read your comment and got going! thank you so much!
thanks ..I was stuck glad read your comment
I'm working on get api from Flickr and trusly I have no idea until this vid. Thank you so much
I am glad this helped!
Thanks for showing this Valentin I was in desperation when I saw the flickr API was OAuth 1.0 as I'm much more familiar with OAuth 2.0 and Open ID Connect :)
Happy to help.
You are a lifesaver!! I wish I could give you more than 1 like
Thank you! You can watch and like my other videos :P and subscribe :)
Fantastic video - thank you!
Glad you enjoyed it!
Thank you very much !!!
You are welcome. Thank you for leaving a comment.
You can avoid a nasty error Status: 401 Unauthorized oauth_problem=signature_invalid.
To do this, select Add authorization data to: Request Headers in Authorization.
Thanks for sharing
I changed Add authorization data to: Request Headers. But still have 401Unauthorized oauth_problem=verifier_invalid when trying to get access_token. What else can affect on that?
In oauth_callback value example.com is not working. I tried several times. Any solution?
authorization -> advenced -> Callback URL -> www.example.com
@@roberto200able i had the same error man , i was going crazy but saw your answer and now it works fine
@@roberto200able where can i find that authorization -> advenced -> Callback URL
@@minoliisurika3899 its in the config of the postman call i dont remember the exaclty place
Thank you.
You're welcome!
thank you for this tutorial
nice & easy
i have question
i want to use Flickr for swift Development what should write in Callback URL
You need a public callback url that redirects to your app.
Las nuevas versiones de postman cuentan con los parámetros de verifier para utilizarlos no es necesario crearlo en paremetros
Hi, Will it work with ReactJS?
Question: how does postman generate the extra OAuth 1.0 parameters, if I were to implement my own code?
Since OAuth is a standard, I don't see why you would need extra params. However, you can manually add query params.
Hi, thanks for your effort. I have a question... Is it Possible to call an API within the Pre-request script synchronously? I need to set the environment variable token from that request then use it in the main request. Is it possible to do that or I need to chain the requests?
I found pm.sendRequest but it's async
Yes, you can. AFAIK the "main" request does not start until the pre-request script is done. You can set the variable in the callback. Let me know if this does not work.
i also need a same for LTI APIs. it also uses oauth v1 but its has some extra steps in my opinion. this API used for Learning management system to access course contents. Many LMS provider are using LTI .like canvas, Whiteboard ,pearson. ETC please make a video on it
Hey! good video help me a lot, but i stuck at Step 3- Exchanging the Request Token for an Access Token, do all like in your video, but i have respond "Status: 401 Unauthorized oauth_problem=verifier_invalid"
I am sorry. Are you using the API from the video?
@@vdespa yes
@@vdespa Me too. Now, I don't know how to fix this error. Does anyone have any ideas for me please?
@@dohuutufgwhn9059 Can you ask this on the Discord server?
Does anyone find solution how to fix it?
It is not really complicated. Complicated is, that flickr that not differ between request_token and access_token on there repsonses
Hi thanks for sharing this, it was really helpful. A question, say if I want to automate the user consent part within postman itself without manually opening a browser window - is this possible?
Postman can't help you with automating user interactions. Use Selenium or similar tools for that. Use Postman for APIs.
Hi, i want to upload a picture on flickr using the api, which token shall i use in the setToken function?
I always get an error message saying you do not have permission.
It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
Iam getting CORS error while using in browser, so wanna know whether you're using desktop or browser
It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@@vdespa it seems the problem lies in browser, browsers always throws CORS error. After getting desktop version it got fixed. Your video is one of the reason I'm gonna get selected for a internship, so thankyou
Hi, Thanks for the video! I have a question, Should I need to pass the application name in the header? (like application_name: my_app)
Thanks, I am glad it helped. Typically this is not needed, as the application is already identified.
Hi, thanks for the nice video. But I am stuck at some point while requesting token. Though, I have specified all the parameters still meeting this error constantly: oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key%26oauth_signature%26oauth_signature_method%26oauth_nonce%26oauth_timestamp
Any suggestions.
Check your request and make sure the parameters mentioned are being sent.
@@vdespa All the parameters are there, but now meeting this error: oauth_problem=signature_invalid
Why the Step 1 is needed? "When Your App first makes an API call for a request token.
OAuth 2 doesn't have it and we can just simply redirect a user to the AS
OAuth1 is not the same as OAuth2.
@@vdespa off course, I just wondered what exactly the first step achieves
oauth sucks. Thanks for this great explainer video, I am slightly less confused now.
OAuth tried to solve a problem with the technology available. It is not perfect but it works.
@@vdespa I have seen it work, it is just hard to get there when starting from zero. i am much closer now, I have figured out for my use case that all I need to do is the signing implementation of Oauth 1.0. Do you know anywhere I can read up on implementing this inside AWS Lambda using Python? That is if you don't have any videos on that already.
@@ighsight unfortunately I don't. I am not even sure if AWS lambda is the best platform for this.
@@vdespa I am reaching that conclusion as well. I may have to set up a server on an EC2 instance to get this done. Obviously I am trying to avoid that complexity and stay serverless, as that is the setup for this app. I'm adding calls to a service to it that unfortunately still uses the older Oauth 1.0 with no option for 2.0. Before I go the server route I am first trying to understand how to get the requests set up correctly, which will need to be done regardless of what path I take- it will still be just creating and signing appropriate headers, no need for user interaction during the process. If you have any resources or videos on that use case please let me know. Thanks for your replies.
@@ighsight before deploying, focus on getting it to work locally