How to use the UPS api oauth 2.0 auth

  Рет қаралды 5,777

John Christensen

John Christensen

Күн бұрын

This video shows how to use the oauth 2.0 api for the UPS api.
Here is a follow up video for you with the code example
• UPS api oauth 2.0 get ...
Here is the example code.
github.com/JohnAwesomeJr/ups-...
Thanks for watching

Пікірлер: 31
@ferozk
@ferozk 5 ай бұрын
You made my life easier. I faced the same struggle you had. After seeing the video, I know what i have to do. Thank you!
@johnchristensen3869
@johnchristensen3869 5 ай бұрын
I am glad it helped you.
@jeremyhodge5525
@jeremyhodge5525 Ай бұрын
Your intro is so funny, I was LMAO. You can feel the saltiness in your words 😂😂 An thank you very much for posting this!
@johnchristensen3869
@johnchristensen3869 Ай бұрын
Glad you enjoyed it.
@user-cq2ot2eo8v
@user-cq2ot2eo8v 3 ай бұрын
Yeah so basically you're using the client_credentials method, not the auth_code auth_code is supposed to send you to a page where you enter your logins and then redirect to the redirect_uri where this page should fetch the access_token and use this for the following requests. client_credentials is when you know the credentials and generate a token with it. A bit missleading when you say "ignore the clientcredentials" etc when you actually show the client_credentials code haha But otherwise, very clear and good video
@johnchristensen3869
@johnchristensen3869 3 ай бұрын
Ya, I had such a hard time figuring this out. I have also learned a lot more since this video was posted but I am glad people are getting value out of the video even though it might not be perfect. Thanks for the comment.
@user-cq2ot2eo8v
@user-cq2ot2eo8v 2 ай бұрын
@@johnchristensen3869 My bad, rereading my message, it looks harsh ! I didn't mean it to be mean ! Your video is really great, and I'm pretty it enlightened people on this messy documentation ! Very great job :D
@zcpdna
@zcpdna 7 ай бұрын
Good video, thanks! btw, the part you had removed from the sample code and couldn't find was the Package -> SimpleRate array
@johnchristensen3869
@johnchristensen3869 7 ай бұрын
Hey thank you so much. I knew I was missing something.
@alexsyzoniuk8335
@alexsyzoniuk8335 8 ай бұрын
Great thank you!
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
You're welcome!
@emresafter8629
@emresafter8629 9 ай бұрын
some heroes don't wear capes...
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Thank you my friend
@RajeshYadavDL
@RajeshYadavDL 9 ай бұрын
Thanks! 🙂
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
👍
@yoon8678
@yoon8678 9 ай бұрын
THANK YOU for putting this up! I have a question tho. Yes, I did get the client and secret; that was the easy part. But now.. when I go to the OAuthAuthCode and want to try it out, the fields that are required are grant_type ("authorization_code"), redirect_uri (ok.. no problem) and.. code. That last one is the "Authorization code from the UPS login system". I saw you didn't have that on your screen. Any idea how to get that code tho? I know you can get it with the Authorize Client.. but that's a huge pain, because I had to put it in the browser, because it wants me to log in.. Am I missing something??
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
here is a follow up video for you with the code example kzfaq.info/get/bejne/erSDldaKt9fXY58.html
@yoon8678
@yoon8678 8 ай бұрын
@@johnchristensen3869 Thank you SO MUCH for this! I had enough by using your first video. I would like to add a few comments though: Instead of "Rate", you can use "Shop" (in your code that's the value of $requestoption). You will then get ALL the available rates back and can read this out of the json response... so you'll just need 1 call for all the rates instead of 1 for each individually. I also removed the package dimensions and that didn't make a difference. Have you had any issues with removing the package dimensions? (I removed that, because it'll always be different and won't know beforehand what the dimensions would be anyway..)
@muhammadrussell2174
@muhammadrussell2174 6 ай бұрын
The video is very helpful thanks. BTW do you know what transactionSrc and transId are?
@eddiemao3527
@eddiemao3527 6 ай бұрын
those are defined by user, you can put whatever alphanumeric value in. called and confirmed with UPS api sup
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Yes, I believe that is correct.
@alexanderthegreat3159
@alexanderthegreat3159 9 ай бұрын
Hi again John. The new comments aren’t showing up. *Correction: the question I asked earlier and perhaps 2 answers to that question. For some reason this comment specifically is showing up 🤷‍♂️
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Here is a follow up video for you with the code example kzfaq.info/get/bejne/erSDldaKt9fXY58.html
@faizanarain3080
@faizanarain3080 2 ай бұрын
Can someone integration UPS in Magento 2?
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
Ya, that sounds like a fun project. Unfortunately I don’t have the time to jump into that right now. I will let you know if I work on something right now in the future.
@Rcap238
@Rcap238 Ай бұрын
I have all the configuration set, have a developer account with client and secret, make the call and I get an "Invalid/Missing Authorization Code". No idea why this is coming back. I am using postman to make the call, it is doing the base64 encoding on the client and secret. No idea how to make this work.
@johnchristensen3869
@johnchristensen3869 Ай бұрын
If you can show me the code I will take a look at it.
@Rcap238
@Rcap238 Ай бұрын
@@johnchristensen3869 I figured it out, of course it was not in the documentation anywhere, the issue was tied to the "grant_type". I was using the default until I looked through your code and changed it to "client_credentials". So thank you again for this post. I am now struggling with the tracking API. Support was useless in helping as expected.
@johnchristensen3869
@johnchristensen3869 28 күн бұрын
I have not looked at the tracking one myself. If I start working on a project with that I will definitely keep you updated. Sorry I’m not much help on that one right now.
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Here is a follow up video for you with the code example kzfaq.info/get/bejne/erSDldaKt9fXY58.html
@raideex
@raideex 7 ай бұрын
I watched both videos, but I still can't find what you are passing for the required param code "Authorization code from the UPS login system" if I try the request without it - I just get an error saying "message": "Invalid/Missing Authorization Code". Where/how do I obtain this authorization code? Thanks!
Using UPS API Developer KIt
48:48
OOP Coders
Рет қаралды 33 М.
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 113 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 476 М.
How The UPS API Works oAuth2.0
25:42
John Christensen
Рет қаралды 4 М.
EasyPost Tutorial For Beginners - How To Use EasyPost (2022)
10:36
Business Guide
Рет қаралды 6 М.
UPS WorldShip & UPS.com - Paperless Invoice
5:27
UPS Tech Guy
Рет қаралды 7 М.
ZOOM Meeting Integration API Setup With OAUTH Authentication
13:35
snowexpertrohit
Рет қаралды 50 М.
OAuth client credentials flow
3:25
Jan Goebel
Рет қаралды 18 М.
HTMX - What they don't want you to know!
13:28
CoderOne
Рет қаралды 81 М.
Buyer Beware! Is Temu Legit And Safe To Buy From? (My Unbiased Review)
12:01
MyWifeQuitHerJob Ecommerce Channel
Рет қаралды 1,5 МЛН
OAuth 2 Explained In Simple Terms
4:32
ByteByteGo
Рет қаралды 364 М.
OAuth 2.0 - a dead simple explanation
9:16
Jan Goebel
Рет қаралды 16 М.