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

Why is using the API with oAuth2.0 seemingly impossible to get working?

All I want to do is create a python script to download my listings with qty, then update the eBay qty based on what I have on hand.  I want this to happen several times a day (once an hour).  This process is unattended and the oAuth flow requires me to "login" physically from a browser to obtain a token.  I cant do that.  There are third party inventory control apps that do this all the time.  How are they doing it unattended? 

 

I have tried to get chatgpt to create python scripts to do this, and none of them seem to work correctly.  All of them require the "user token" and the only way I can get a user token is to physically log into my ebay developer portal and click on a link to create it.

 

There has to be a better way.  Could someone simplify this for me please?  Maybe some code that shows how you are doing it?

 

 

 

Message 1 of 4
latest reply
3 REPLIES 3

Why is using the API with oAuth2.0 seemingly impossible to get working?

I have created a package but in .NET to do all this stuff, I updating listings every hour without any user interaction.

Have a look here and try to understand and convert into python.

C# wrapper for eBay REST API
https://github.com/CMS365-PTY-LTD/EbaySharp
Message 2 of 4
latest reply

Why is using the API with oAuth2.0 seemingly impossible to get working?

Having the same issue. Did the Ebay Sharp repo help? 

Message 3 of 4
latest reply

Why is using the API with oAuth2.0 seemingly impossible to get working?

When doing the initial oauth exchange, you should also be able to get a 'refresh' token that will let you request a new user token without having to provide your login info again. Refresh tokens last about 18 months, so if you store it somewhere (a database, file, etc) you should be able to request new user tokens with it and only need to manually log in once a year or so.

Message 4 of 4
latest reply