How The UPS API Works oAuth2.0
25:42
Keep on uploading!
8:46
Жыл бұрын
AI ends all devs
12:04
Жыл бұрын
Make stuff faster
8:57
Жыл бұрын
The struggle OOP
7:57
Жыл бұрын
How to improve your code
10:28
Жыл бұрын
Пікірлер
@ariefkurniawan8997
@ariefkurniawan8997 14 күн бұрын
Thank you very much, that was very useful and helped with my project. I have been searching for that solution for a week, so glad to find this video.
@johnchristensen3869
@johnchristensen3869 14 күн бұрын
Glad it helped.
@denisss777
@denisss777 14 күн бұрын
Thanks for the video! Question! is any way you can connect to google vm without creating ssh keys but just with password? let say you away from office.. just ssh [email protected] with password. I try to edit vm sshd_config and add Password Authentication yes but seems not enough. Thanks
@johnchristensen3869
@johnchristensen3869 14 күн бұрын
I have done that before but not in a google VM. If it is not working for you, google may have some kind of protection that needs to be turned off. When I get a bit of time I will play around with it and see if I can find a solution without the need for a key and just use password.
@denisss777
@denisss777 14 күн бұрын
@@johnchristensen3869 great, thanks!
@anand-nb4bb
@anand-nb4bb Ай бұрын
Hi Bro, I have a query. Can I create a directory inside a linux VM in google cloud & access it via the public IP ? Can you please help its a request I am not talking about google bucket. just a folder in linux vm which I need to access via the public IP of the VM Thanks & regards,
@johnchristensen3869
@johnchristensen3869 Ай бұрын
Ya, I made a video on this topic just for you. kzfaq.info/get/bejne/et15qLuct6-wmJc.html
@anand-nb4bb
@anand-nb4bb Ай бұрын
@@johnchristensen3869 Thanks bro
@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.
@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.
@tukisore
@tukisore Ай бұрын
Thank you! You really saved lots of time!
@johnchristensen3869
@johnchristensen3869 Ай бұрын
Happy to help!
@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.
@kaiB
@kaiB 2 ай бұрын
whats root of the cause?
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
It has been a while since I have made this video. If I remember correctly it had something to do with the docker container not being exposed outside of the container. But I would need to look at it to verify.
@thecandyman7278
@thecandyman7278 2 ай бұрын
What account do you use to log in UPS ? I mean the owner of the app must authorize your UPS account ? or do just need one UPS account and have the URL ?
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
The owner of the app has the ability to let users log into the users own account and use their ups account with the app owners interface instead of the ups website.
@sujaysuresh1728
@sujaysuresh1728 2 ай бұрын
Should I provide card details to get client id and secret id. Isn’t it possible to get details without providing card details I’m trying to create new account
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
I don’t believe you need to provide a credit card to use the API. It’s been a while since I signed up though. Even if you do add a card, you shouldn’t need to pay for the API.
@TheseKidsWearKrowns
@TheseKidsWearKrowns 2 ай бұрын
Hi John, thanks for this! This is my first time dealing with OAuth and this was very helpful. I have a specific problem I am troubleshooting for that I need help with. Essentially, my customer is creating a subscription. Once users pay for the subscription they will be pushed through to the member portal. There I will need pages that allow the customer to purchase and create their own shipping/return labels. Can you please help me understand how to achieve this.
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
Ya, lets talk about it. I understand the user will be printing the label. My question is who is paying UPS for the label? Is the user using their own ups account number or will the app be paying UPS for the label with the apps UPS account number?
@TheseKidsWearKrowns
@TheseKidsWearKrowns 2 ай бұрын
The customer (user) will be paying for the label on their own as they may want to send in 10 pair or 3 pair. They need to pay for whatever they are sending. But we want them to be able to do it from a page within the website for convenience for the customer.
@danburgdorf6428
@danburgdorf6428 2 ай бұрын
Any chance you have an example of a shipment? I've been fighting "The request is well formed but the request is not valid"
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
I’m sorry you are having that problem. I have never run into that error before. Any chance you have an example of the code you are using?
@johnchristensen3869
@johnchristensen3869 2 ай бұрын
The code on the GitHub should be fully functional. Just add your “client ID”, “secret”, and “UPS account number” at the top of the script run it in a browser, and it should pull data from the UPS API.
@danburgdorf6428
@danburgdorf6428 2 ай бұрын
@@johnchristensen3869 The get cost you provided works great! I cant get the "ShipmentRequest" to work without that error
@srinivassosale1822
@srinivassosale1822 3 ай бұрын
Great descriptions with the OAuth token creation for UPS. Has anyone tried to incorporate the OAuth to the traditional SOAP Calls that uses SECURITY WSDL? Trying to incorporate OAUTH instead of the traditional SECURITY access for the SOAP Requests and responses.
@johnchristensen3869
@johnchristensen3869 3 ай бұрын
I am afraid I am not much help when it comes to that. Sorry. Maybe someone else in the comments might know.
@jeramiehendricks2799
@jeramiehendricks2799 3 ай бұрын
You just saved me a ton of time. Thank you!
@johnchristensen3869
@johnchristensen3869 3 ай бұрын
Happy to hep
@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
@sergiotorres9226
@sergiotorres9226 3 ай бұрын
Yes, please, make the video for refreshing the bearer token
@johnchristensen3869
@johnchristensen3869 3 ай бұрын
Thanks. I will work on that. Did you enjoy the video?
@thecandyman7278
@thecandyman7278 2 ай бұрын
@@johnchristensen3869 it's Killer !
@mrsmithjohn1234
@mrsmithjohn1234 3 ай бұрын
Thanks this is really helpful.
@johnchristensen3869
@johnchristensen3869 3 ай бұрын
Glad it was useful.👍
@richardb8104
@richardb8104 4 ай бұрын
Did they patch this yet or did you move on from CornPop?
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
I am not sure it has been a while since I have used it. If I learn anything I will let you know.
@JediMediator
@JediMediator 4 ай бұрын
This is super helpful! You might want to cut out the part where you show us where you live, though. We want you to stay safe :)
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
Thanks for the tip! Glad it was helpful.
@liamabean3532
@liamabean3532 4 ай бұрын
Is there no alternative to the redirect? 😢
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
Tell me what you are trying to do? Maybe I can help:
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
If you need help let me know.
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
This video is if you are building an app that has multiple users that all have their own ups account numbers. If you are making an internal app for your company I would do it differently. Watch this video instead. kzfaq.info/get/bejne/erSDldaKt9fXY58.htmlsi=tYvvw6PNhsYvHR1c Callback url can be local and you don’t need to prompt the user to log in. You put the client id and secret diredtly in the code so the user never needs to log in.
@michaelk7262
@michaelk7262 4 ай бұрын
Great video! Although I'm just learning about OAuth for the first time. This seems daunting especially with the lack of documentation on UPS' part. With a working setup, how often does a user have to log in to the UPS account with user and password (to get the bearer token)? I can't believe the token expires in 1 hour. And also, does the callback URL have to be a publicly available URL? I was hoping to use this in an internal webapp that is network restricted. This webapp has been using the UPS API through the previous access model with no problem, but it looks like UPS will turn that off in 2 months.
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
This video is if you are building an app that has multiple users that all have their own ups account numbers. If you are making an internal app for your company I would do it differently. Watch this video instead. kzfaq.info/get/bejne/erSDldaKt9fXY58.htmlsi=tYvvw6PNhsYvHR1c Callback url can be local and you don’t need to prompt the user to log in. You put the client id and secret diredtly in the code so the user never needs to log in.
@esais64
@esais64 4 ай бұрын
Please make the video for refreshing the bearer token
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
Sure, I will work on that. Did you find this video informative?
@esais64
@esais64 4 ай бұрын
@@johnchristensen3869 yes very,, thanks
@relative111
@relative111 4 ай бұрын
Super Video, thanks John!@@johnchristensen3869
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
Happy to help.
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
Happy to help.
@SumantXD
@SumantXD 5 ай бұрын
Good stuff 😊
@johnchristensen3869
@johnchristensen3869 5 ай бұрын
Glad you liked it.
@arjanshaw8670
@arjanshaw8670 5 ай бұрын
Github page returns not found...
@johnchristensen3869
@johnchristensen3869 5 ай бұрын
Thanks for pointing that out. The link is fixed now.
@emynor7350
@emynor7350 5 ай бұрын
I'm new to PHP. What IDE you used for your project? Thanks
@johnchristensen3869
@johnchristensen3869 5 ай бұрын
Welcome to the fun world of coding! I am currently using VS Code. It’s an extremely common IDE
@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.
@shomikhan1333
@shomikhan1333 6 ай бұрын
Thanks a lot for this awesome explanation
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Glad it was helpful!
@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.
@RedCloudServices
@RedCloudServices 7 ай бұрын
thank you! Just started with saltcorn for a big project updating postgres records. Problem is we have people across country in regions so they need to view and edit only their data. Would you recommend just creating a role and view for each region? also i wish there was a way to create a card view where each card was a summary count of records per region 🤔
@johnchristensen3869
@johnchristensen3869 7 ай бұрын
I will see if I can look into that over the next few days. Saltcorn is a great tool and extremely useful. It’s not perfect though. Personally, I have found that if you’re doing something extremely custom saltcorn has its limitations. Something like laravel might be a better option, but unfortunately Laravel is made for people how know how to code. Let me see what I can find out.
@RedCloudServices
@RedCloudServices 7 ай бұрын
@@johnchristensen3869 thanks in meantime I am onto Dronahq. Any app builder that works locally w postgres i would take but most are cloud based. Dronahq self-host so far is a fail. Saltcorn refuses to be setup w postgres I am in their Discord others have same issue
@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.
@VIMALSINGHDEC91
@VIMALSINGHDEC91 8 ай бұрын
Not enough arguments (missing: "{--with-livewire").
@johnchristensen3869
@johnchristensen3869 7 ай бұрын
I’m not totally sure, but I believe that is a laravel specific error.
@pehenry
@pehenry 8 ай бұрын
Thanks man. Do you have plans on building / using the "Tracking API"? Specifically, we're a small business that ships stuff to our customers. And lots of times, we use our customer's UPS ID to ship/pay for shipping. But they want our software to provide UPS Tracking# delivery status. If I am reading the API correctly, I have to use each of their account IDs in the API to query a Tracking Number associated with their account.
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Ya, I am not really working on some like that right now. But I do plan to something with tracking on a project that is in the works so it might be a few months before I make any progress on it. I will let you know.
@pehenry
@pehenry 6 ай бұрын
@@johnchristensen3869 no worries. We were able to figure it out. Basically, once you create the one API to authenticate, the others are easy.
@alexsyzoniuk8335
@alexsyzoniuk8335 8 ай бұрын
Some code saves lives
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Thanks
@alexsyzoniuk8335
@alexsyzoniuk8335 8 ай бұрын
Great thank you!
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
You're welcome!
@tond9997
@tond9997 8 ай бұрын
Thank you
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
You're welcome
@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!
@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..)
@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
@RajeshYadavDL
@RajeshYadavDL 9 ай бұрын
Thanks! 🙂
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
👍
@emresafter8629
@emresafter8629 9 ай бұрын
some heroes don't wear capes...
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Thank you my friend
@bakulimpian8815
@bakulimpian8815 10 ай бұрын
Can use relationship to many database?
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
You know, I am really not sure. I have never done it that way before. I imagine that you can because that is a simple change in the sql but I have not actually tried it.
@okaen16
@okaen16 10 ай бұрын
thx man
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Any time!
@Luai148
@Luai148 11 ай бұрын
Very Helpful thnx
@johnchristensen3869
@johnchristensen3869 10 ай бұрын
Happy to help.
@agungdarmayuda5754
@agungdarmayuda5754 Жыл бұрын
Thanks for sharing!
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Thanks for watching!
@user-pb6ml6sz9s
@user-pb6ml6sz9s Жыл бұрын
Saved me ! thanks!
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Glad it helped!
@MG-wx8yx
@MG-wx8yx Жыл бұрын
Hello, I hope you are doing well. I was looking for someone who is using Craftable cause I'm really new to it and I ran into error in the first try🤣 (related to the relationship). Didn't get what I was looking for here but I liked your video anyway. Seems not many developers are using these CRUD generators, but they help a lot, like you said, with those tasks that we do repetitively.
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Thanks for the comment. I don’t know if I will be able to help but I would love to try. What is the problem that you are having?
@NeonCoding
@NeonCoding Жыл бұрын
Scripting videos has always been helpful for some of my stuff, but when talking about personal experience you really just kinda need to allow some freedom of expressing your points - when you're talking technical, yeah scripts are the way to go, but anecdotes can't be too depersonalized.
@johnchristensen3869
@johnchristensen3869 10 ай бұрын
Thaks.
@robincampbell4945
@robincampbell4945 Жыл бұрын
pr໐๓໐Ş๓
@johnchristensen3869
@johnchristensen3869 10 ай бұрын
?
@NeonCoding
@NeonCoding Жыл бұрын
Loving the videos!
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Thank you very much. I really appreciate it my friend!
@kamudrikahkm
@kamudrikahkm Жыл бұрын
maybe you should checkout Nova or Filament. it provides the same thing as what you described and more. personally I am leaning more toward Filament coz its free. its built on top of Livewire. so easier code to do front end stuff for backend developer like me.
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Thanks for the comment. I am always looking for new tools to make my job easier. I will look into it.