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
@ferozk5 ай бұрын
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!
@johnchristensen38695 ай бұрын
I am glad it helped you.
@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Ай бұрын
Glad you enjoyed it.
@user-cq2ot2eo8v3 ай бұрын
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
@johnchristensen38693 ай бұрын
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-cq2ot2eo8v2 ай бұрын
@@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
@zcpdna7 ай бұрын
Good video, thanks! btw, the part you had removed from the sample code and couldn't find was the Package -> SimpleRate array
@johnchristensen38697 ай бұрын
Hey thank you so much. I knew I was missing something.
@alexsyzoniuk83358 ай бұрын
Great thank you!
@johnchristensen38698 ай бұрын
You're welcome!
@emresafter86299 ай бұрын
some heroes don't wear capes...
@johnchristensen38698 ай бұрын
Thank you my friend
@RajeshYadavDL9 ай бұрын
Thanks! 🙂
@johnchristensen38698 ай бұрын
👍
@yoon86789 ай бұрын
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??
@johnchristensen38698 ай бұрын
here is a follow up video for you with the code example kzfaq.info/get/bejne/erSDldaKt9fXY58.html
@yoon86788 ай бұрын
@@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..)
@muhammadrussell21746 ай бұрын
The video is very helpful thanks. BTW do you know what transactionSrc and transId are?
@eddiemao35276 ай бұрын
those are defined by user, you can put whatever alphanumeric value in. called and confirmed with UPS api sup
@johnchristensen38696 ай бұрын
Yes, I believe that is correct.
@alexanderthegreat31599 ай бұрын
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 🤷♂️
@johnchristensen38698 ай бұрын
Here is a follow up video for you with the code example kzfaq.info/get/bejne/erSDldaKt9fXY58.html
@faizanarain30802 ай бұрын
Can someone integration UPS in Magento 2?
@johnchristensen38692 ай бұрын
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Ай бұрын
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Ай бұрын
If you can show me the code I will take a look at it.
@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.
@johnchristensen386928 күн бұрын
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.
@johnchristensen38698 ай бұрын
Here is a follow up video for you with the code example kzfaq.info/get/bejne/erSDldaKt9fXY58.html
@raideex7 ай бұрын
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!