07-02-2023 11:36 AM
I am using the \DTS\eBaySDK\ and all was working fine. A year ago, I was somehow able to create the required tokens to get the php app to work.
I had the error:
"Authorisation token is hard expired. User needs to generate a new token for this application."
After the 1 year of using the token. This was expected.
However, I have tried everything I can find to re-generate a new 1 year token again.
I either run into a "The end user has not completed Auth & Auth sign in flow." or "the provided authorization grant code is invalid or was issued to another client" or "request is missing a required parameter or malformed." or other errors. Usually I am pretty good at adding comments to my code if the process is complex, last year I must have gotten luck, but today I feel like an idiot LOL.
I am trying by:
1. Login to dev portal
2. Under Application Keys - Production - Click User Tokens
3. Get a User Token Here - OAuth (new security) - Sign In & Approve
4. Get a Token from eBay via Your Application - which gives me the "code" for requesting the User Token and on the success page I use that code to do a call to getUserToken(\DTS\eBaySDK\OAuth\Types\GetUserTokenRestRequest)
I have been bangin my head on my desk for a few hours ... any help is greatly appreciated!
Zip
07-02-2023 07:19 PM
Okay, after a bunch more of getting no where, I figured out that I was previously using Auth'n'auth.
The old Token did not start with the v^1.... it started with AAA and was much shorter.
In the Dev - Get a User Token Here, the Auth'n'auth token is even shorter and starts with v^1..., and I cannot get anything to work.
Why is something so simple, so complicated.
Anyone throw me a life line of how to generate a new Auth'n'auth token that I can use to authenticate PHP Trading Api?
Zip
07-03-2023 05:04 PM
Never mind... ChatGPT to the rescue. All good.