cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Having Issues with getting a new API Token for PHP Web App after expired - 1 year

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

Message 1 of 3
latest reply
2 REPLIES 2

Having Issues with getting a new API Token for PHP Web App after expired - 1 year

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

Message 2 of 3
latest reply

Having Issues with getting a new API Token for PHP Web App after expired - 1 year

Never mind... ChatGPT to the rescue. All good.

Message 3 of 3
latest reply