proninyaroslav / libretrack

Private, cross-platform package tracking app
GNU General Public License v3.0
253 stars 23 forks source link

[Needs help with account] Support for new UPS authorization #41

Open J-eremy opened 1 year ago

J-eremy commented 1 year ago

UPS has switched to OAuth 2.0 and is no longer issuing new API keys which makes it impossible to add a ups account.

image

https://www.ups.com/upsdeveloperkit/manageaccesskeys?loc=en_US

Bolsderac commented 1 month ago

I confirm. Impossible to use this app anymore with ups account. AOuth must be implemented. But not open source ? https://developer.ups.com/?loc=en_US

proninyaroslav commented 1 month ago

There are plans to fix this in the next version.

proninyaroslav commented 1 month ago

@J-eremy @Bolsderac Friends, I need the community's help to fix this 🙏. Now, in order to track parcels, UPS requires registration of a Shipping Account. But the problem is that it requires real input data (usually for businesses) as well as payment data of the country of residence. So far, I have not been able to register this account, since I live in a country where UPS services are not available. If anyone has a Shipping Account, you can add the application using this link - https://developer.ups.com/apps, and then send me the ID that you will receive after registration (for example, to my Telegram/Matrix/Facebook). This will help me adapt the application for UPS OAuth. Thank you in advance for your help 🫶.

warmachinesocial commented 1 month ago

To be honest I was thinking of making an app just to explore swiftui and compose.... My question was that are we using apis? However I was thinking what if we maintain url request "POST https://webapis.ups.com/track/api/Track/GetStatus?loc=en_US" get response however I don't know at the moment if we have to make account in order to see it.

proninyaroslav commented 1 month ago

@warmachinesocial It's a UPS website API. Scraping a non-public API is an option, but it most likely requires rewriting the parser, it has a different request and response format. Also, I tried to send a POST request and got 401 Unauthorized. It probably requires something else in its header, or cookies. I would be grateful if you could share some information.

Bolsderac commented 1 month ago

Hi, registration requires a means of payment. so i don't want to do it. sorry. Arnaud

14 sept. 2024 09:48:55 Yaroslav Pronin @.***>:

@warmachinesocial[https://github.com/warmachinesocial] It's a UPS website API. Scraping a non-public API is an option, but it most likely requires rewriting the parser, it has a different request and response format. Also, I tried to send a POST request and got 401 Unauthorized. It probably requires something else in its header, or cookies. I would be grateful if you could share some information.

— Reply to this email directly, view it on GitHub[https://github.com/proninyaroslav/libretrack/issues/41#issuecomment-2350898562], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AOJ4SVJCAY3FE2LZEUFOFMLZWPS6PAVCNFSM6AAAAABNKTLKBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHA4TQNJWGI]. You are receiving this because you were mentioned. [Image de pistage][https://github.com/notifications/beacon/AOJ4SVN3W3U6SJHAVEBLGJTZWPS6PA5CNFSM6AAAAABNKTLKBKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUMD7OYE.gif]