Пікірлер
@Mohammad.t0
@Mohammad.t0 15 күн бұрын
Brooo this is great!
@johnchristensen3869
@johnchristensen3869 14 күн бұрын
Glad you liked it.
@Mark-mj5bd
@Mark-mj5bd 18 күн бұрын
using the "shop" option how would you set the $totalCharges variable for each service /monetary value ?
@laxmankumawat6728
@laxmankumawat6728 22 күн бұрын
this repositry is not now exist anyone can provied me
@johnchristensen3869
@johnchristensen3869 21 күн бұрын
The link should be working. github.com/JohnAwesomeJr/php-ups-api-rate-oauth2 let me know if you are having problems.
@zeyadatef6462
@zeyadatef6462 Ай бұрын
Great work. Thanks.
@johnchristensen3869
@johnchristensen3869 21 күн бұрын
Glad you liked it!
@RACE_OFF24
@RACE_OFF24 Ай бұрын
Make a video on courier shipment tracking apis and is they charge for it
@ariefkurniawan8997
@ariefkurniawan8997 2 ай бұрын
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 2 ай бұрын
Glad it helped.
@denisss777
@denisss777 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
@@johnchristensen3869 great, thanks!
@anand-nb4bb
@anand-nb4bb 3 ай бұрын
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 3 ай бұрын
Ya, I made a video on this topic just for you. kzbin.info/www/bejne/eqispouhh65_nsU
@anand-nb4bb
@anand-nb4bb 3 ай бұрын
@@johnchristensen3869 Thanks bro
@Rcap238
@Rcap238 3 ай бұрын
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 3 ай бұрын
If you can show me the code I will take a look at it.
@Rcap238
@Rcap238 3 ай бұрын
@@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 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
Glad you enjoyed it.
@tukisore
@tukisore 4 ай бұрын
Thank you! You really saved lots of time!
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
Happy to help!
@faizanarain3080
@faizanarain3080 4 ай бұрын
Can someone integration UPS in Magento 2?
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
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 4 ай бұрын
whats root of the cause?
@johnchristensen3869
@johnchristensen3869 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@johnchristensen3869 The get cost you provided works great! I cant get the "ShipmentRequest" to work without that error
@srinivassosale1822
@srinivassosale1822 5 ай бұрын
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 5 ай бұрын
I am afraid I am not much help when it comes to that. Sorry. Maybe someone else in the comments might know.
@jeramiehendricks2799
@jeramiehendricks2799 5 ай бұрын
You just saved me a ton of time. Thank you!
@johnchristensen3869
@johnchristensen3869 5 ай бұрын
Happy to hep
@oslb-rd
@oslb-rd 5 ай бұрын
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 5 ай бұрын
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.
@oslb-rd
@oslb-rd 4 ай бұрын
@@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 6 ай бұрын
Yes, please, make the video for refreshing the bearer token
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Thanks. I will work on that. Did you enjoy the video?
@thecandyman7278
@thecandyman7278 4 ай бұрын
@@johnchristensen3869 it's Killer !
@mrsmithjohn1234
@mrsmithjohn1234 6 ай бұрын
Thanks this is really helpful.
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Glad it was useful.👍
@richardb8104
@richardb8104 6 ай бұрын
Did they patch this yet or did you move on from CornPop?
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
Thanks for the tip! Glad it was helpful.
@liamabean3532
@liamabean3532 6 ай бұрын
Is there no alternative to the redirect? 😢
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Tell me what you are trying to do? Maybe I can help:
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
If you need help let me know.
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
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. kzbin.info/www/bejne/en-2k6aPh9amac0si=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 6 ай бұрын
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 6 ай бұрын
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. kzbin.info/www/bejne/en-2k6aPh9amac0si=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 6 ай бұрын
Please make the video for refreshing the bearer token
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Sure, I will work on that. Did you find this video informative?
@esais64
@esais64 6 ай бұрын
@@johnchristensen3869 yes very,, thanks
@relative111
@relative111 6 ай бұрын
Super Video, thanks John!@@johnchristensen3869
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Happy to help.
@johnchristensen3869
@johnchristensen3869 6 ай бұрын
Happy to help.
@SumantXD
@SumantXD 7 ай бұрын
Good stuff 😊
@johnchristensen3869
@johnchristensen3869 7 ай бұрын
Glad you liked it.
@arjanshaw8670
@arjanshaw8670 7 ай бұрын
Github page returns not found...
@johnchristensen3869
@johnchristensen3869 7 ай бұрын
Thanks for pointing that out. The link is fixed now.
@emynor7350
@emynor7350 8 ай бұрын
I'm new to PHP. What IDE you used for your project? Thanks
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Welcome to the fun world of coding! I am currently using VS Code. It’s an extremely common IDE
@ferozk
@ferozk 8 ай бұрын
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 8 ай бұрын
I am glad it helped you.
@shomikhan1333
@shomikhan1333 8 ай бұрын
Thanks a lot for this awesome explanation
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Glad it was helpful!
@muhammadrussell2174
@muhammadrussell2174 9 ай бұрын
The video is very helpful thanks. BTW do you know what transactionSrc and transId are?
@eddiemao3527
@eddiemao3527 8 ай бұрын
those are defined by user, you can put whatever alphanumeric value in. called and confirmed with UPS api sup
@johnchristensen3869
@johnchristensen3869 8 ай бұрын
Yes, I believe that is correct.
@RedCloudServices
@RedCloudServices 9 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
@@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 10 ай бұрын
Good video, thanks! btw, the part you had removed from the sample code and couldn't find was the Package -> SimpleRate array
@johnchristensen3869
@johnchristensen3869 10 ай бұрын
Hey thank you so much. I knew I was missing something.
@VIMALSINGHDEC91
@VIMALSINGHDEC91 10 ай бұрын
Not enough arguments (missing: "{--with-livewire").
@johnchristensen3869
@johnchristensen3869 10 ай бұрын
I’m not totally sure, but I believe that is a laravel specific error.
@pehenry
@pehenry 10 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@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 11 ай бұрын
Some code saves lives
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
Thanks
@alexsyzoniuk8335
@alexsyzoniuk8335 11 ай бұрын
Great thank you!
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
You're welcome!
@tond9997
@tond9997 11 ай бұрын
Thank you
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
You're welcome
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
Here is a follow up video for you with the code example kzbin.info/www/bejne/en-2k6aPh9amac0
@raideex
@raideex 10 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
here is a follow up video for you with the code example kzbin.info/www/bejne/en-2k6aPh9amac0
@yoon8678
@yoon8678 11 ай бұрын
@@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 11 ай бұрын
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 11 ай бұрын
Here is a follow up video for you with the code example kzbin.info/www/bejne/en-2k6aPh9amac0
@RajeshYadavDL
@RajeshYadavDL 11 ай бұрын
Thanks! 🙂
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
👍
@emresafter8629
@emresafter8629 11 ай бұрын
some heroes don't wear capes...
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
Thank you my friend
@bakulimpian8815
@bakulimpian8815 Жыл бұрын
Can use relationship to many database?
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
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 Жыл бұрын
thx man
@johnchristensen3869
@johnchristensen3869 11 ай бұрын
Any time!
@Luai148
@Luai148 Жыл бұрын
Very Helpful thnx
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Happy to help.
@agungdarmayuda5754
@agungdarmayuda5754 Жыл бұрын
Thanks for sharing!
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Thanks for watching!
@LuisOrozco-r7y
@LuisOrozco-r7y Жыл бұрын
Saved me ! thanks!
@johnchristensen3869
@johnchristensen3869 Жыл бұрын
Glad it helped!