using the "shop" option how would you set the $totalCharges variable for each service /monetary value ?
@laxmankumawat672822 күн бұрын
this repositry is not now exist anyone can provied me
@johnchristensen386921 күн бұрын
The link should be working. github.com/JohnAwesomeJr/php-ups-api-rate-oauth2 let me know if you are having problems.
@zeyadatef6462Ай бұрын
Great work. Thanks.
@johnchristensen386921 күн бұрын
Glad you liked it!
@RACE_OFF24Ай бұрын
Make a video on courier shipment tracking apis and is they charge for it
@ariefkurniawan89972 ай бұрын
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.
@johnchristensen38692 ай бұрын
Glad it helped.
@denisss7772 ай бұрын
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
@johnchristensen38692 ай бұрын
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.
@denisss7772 ай бұрын
@@johnchristensen3869 great, thanks!
@anand-nb4bb3 ай бұрын
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,
@johnchristensen38693 ай бұрын
Ya, I made a video on this topic just for you. kzbin.info/www/bejne/eqispouhh65_nsU
@anand-nb4bb3 ай бұрын
@@johnchristensen3869 Thanks bro
@Rcap2383 ай бұрын
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.
@johnchristensen38693 ай бұрын
If you can show me the code I will take a look at it.
@Rcap2383 ай бұрын
@@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.
@johnchristensen38693 ай бұрын
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.
@jeremyhodge55253 ай бұрын
Your intro is so funny, I was LMAO. You can feel the saltiness in your words 😂😂 An thank you very much for posting this!
@johnchristensen38693 ай бұрын
Glad you enjoyed it.
@tukisore4 ай бұрын
Thank you! You really saved lots of time!
@johnchristensen38694 ай бұрын
Happy to help!
@faizanarain30804 ай бұрын
Can someone integration UPS in Magento 2?
@johnchristensen38694 ай бұрын
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.
@kaiB4 ай бұрын
whats root of the cause?
@johnchristensen38694 ай бұрын
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.
@thecandyman72784 ай бұрын
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 ?
@johnchristensen38694 ай бұрын
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.
@sujaysuresh17285 ай бұрын
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
@johnchristensen38695 ай бұрын
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.
@TheseKidsWearKrowns5 ай бұрын
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.
@johnchristensen38695 ай бұрын
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?
@TheseKidsWearKrowns5 ай бұрын
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.
@danburgdorf64285 ай бұрын
Any chance you have an example of a shipment? I've been fighting "The request is well formed but the request is not valid"
@johnchristensen38695 ай бұрын
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?
@johnchristensen38695 ай бұрын
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.
@danburgdorf64285 ай бұрын
@@johnchristensen3869 The get cost you provided works great! I cant get the "ShipmentRequest" to work without that error
@srinivassosale18225 ай бұрын
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.
@johnchristensen38695 ай бұрын
I am afraid I am not much help when it comes to that. Sorry. Maybe someone else in the comments might know.
@jeramiehendricks27995 ай бұрын
You just saved me a ton of time. Thank you!
@johnchristensen38695 ай бұрын
Happy to hep
@oslb-rd5 ай бұрын
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
@johnchristensen38695 ай бұрын
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-rd4 ай бұрын
@@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
@sergiotorres92266 ай бұрын
Yes, please, make the video for refreshing the bearer token
@johnchristensen38696 ай бұрын
Thanks. I will work on that. Did you enjoy the video?
@thecandyman72784 ай бұрын
@@johnchristensen3869 it's Killer !
@mrsmithjohn12346 ай бұрын
Thanks this is really helpful.
@johnchristensen38696 ай бұрын
Glad it was useful.👍
@richardb81046 ай бұрын
Did they patch this yet or did you move on from CornPop?
@johnchristensen38696 ай бұрын
I am not sure it has been a while since I have used it. If I learn anything I will let you know.
@JediMediator6 ай бұрын
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 :)
@johnchristensen38696 ай бұрын
Thanks for the tip! Glad it was helpful.
@liamabean35326 ай бұрын
Is there no alternative to the redirect? 😢
@johnchristensen38696 ай бұрын
Tell me what you are trying to do? Maybe I can help:
@johnchristensen38696 ай бұрын
If you need help let me know.
@johnchristensen38696 ай бұрын
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.
@michaelk72626 ай бұрын
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.
@johnchristensen38696 ай бұрын
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.
@esais646 ай бұрын
Please make the video for refreshing the bearer token
@johnchristensen38696 ай бұрын
Sure, I will work on that. Did you find this video informative?
@esais646 ай бұрын
@@johnchristensen3869 yes very,, thanks
@relative1116 ай бұрын
Super Video, thanks John!@@johnchristensen3869
@johnchristensen38696 ай бұрын
Happy to help.
@johnchristensen38696 ай бұрын
Happy to help.
@SumantXD7 ай бұрын
Good stuff 😊
@johnchristensen38697 ай бұрын
Glad you liked it.
@arjanshaw86707 ай бұрын
Github page returns not found...
@johnchristensen38697 ай бұрын
Thanks for pointing that out. The link is fixed now.
@emynor73508 ай бұрын
I'm new to PHP. What IDE you used for your project? Thanks
@johnchristensen38698 ай бұрын
Welcome to the fun world of coding! I am currently using VS Code. It’s an extremely common IDE
@ferozk8 ай бұрын
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!
@johnchristensen38698 ай бұрын
I am glad it helped you.
@shomikhan13338 ай бұрын
Thanks a lot for this awesome explanation
@johnchristensen38698 ай бұрын
Glad it was helpful!
@muhammadrussell21749 ай бұрын
The video is very helpful thanks. BTW do you know what transactionSrc and transId are?
@eddiemao35278 ай бұрын
those are defined by user, you can put whatever alphanumeric value in. called and confirmed with UPS api sup
@johnchristensen38698 ай бұрын
Yes, I believe that is correct.
@RedCloudServices9 ай бұрын
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 🤔
@johnchristensen38699 ай бұрын
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.
@RedCloudServices9 ай бұрын
@@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
@zcpdna10 ай бұрын
Good video, thanks! btw, the part you had removed from the sample code and couldn't find was the Package -> SimpleRate array
@johnchristensen386910 ай бұрын
Hey thank you so much. I knew I was missing something.
@VIMALSINGHDEC9110 ай бұрын
Not enough arguments (missing: "{--with-livewire").
@johnchristensen386910 ай бұрын
I’m not totally sure, but I believe that is a laravel specific error.
@pehenry10 ай бұрын
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.
@johnchristensen38698 ай бұрын
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.
@pehenry8 ай бұрын
@@johnchristensen3869 no worries. We were able to figure it out. Basically, once you create the one API to authenticate, the others are easy.
@alexsyzoniuk833511 ай бұрын
Some code saves lives
@johnchristensen386911 ай бұрын
Thanks
@alexsyzoniuk833511 ай бұрын
Great thank you!
@johnchristensen386911 ай бұрын
You're welcome!
@tond999711 ай бұрын
Thank you
@johnchristensen386911 ай бұрын
You're welcome
@johnchristensen386911 ай бұрын
Here is a follow up video for you with the code example kzbin.info/www/bejne/en-2k6aPh9amac0
@raideex10 ай бұрын
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!
@yoon867811 ай бұрын
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??
@johnchristensen386911 ай бұрын
here is a follow up video for you with the code example kzbin.info/www/bejne/en-2k6aPh9amac0
@yoon867811 ай бұрын
@@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..)
@alexanderthegreat315911 ай бұрын
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 🤷♂️
@johnchristensen386911 ай бұрын
Here is a follow up video for you with the code example kzbin.info/www/bejne/en-2k6aPh9amac0
@RajeshYadavDL11 ай бұрын
Thanks! 🙂
@johnchristensen386911 ай бұрын
👍
@emresafter862911 ай бұрын
some heroes don't wear capes...
@johnchristensen386911 ай бұрын
Thank you my friend
@bakulimpian8815 Жыл бұрын
Can use relationship to many database?
@johnchristensen386911 ай бұрын
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.