eBay / ebay-oauth-nodejs-client

🔑 Generate an OAuth token that can be used to call the eBay Developer REST APIs.
https://ebay.github.io/ebay-oauth-nodejs-client/
Apache License 2.0
64 stars 30 forks source link

Any way to access my own ebay account history through a script? #3

Open apanagar opened 4 years ago

apanagar commented 4 years ago

Thanks for this library, it makes dealing with the ebay API significantly easier.

I was trying to access my own ebay account programmatically.

I am able to use this code to get the URL for the user login, but it seems that the only way I can provide credentials to get a user token is to go through a browser. Is there a way to provide credentials to my script so I can get a user authorization, and be able to download my ebay user's history, etc?

pajaydev commented 4 years ago

@apanagar It's not recommended to generate it through scripts. As the authorization code grant flow typically involves a human in the flow that sign-in in order to obtain the authorization token that is later used to obtain the access code. You can copy and paste the url in the browser to get the code.

If you are using the express app the you can use

res.redirect(url) which will redirect to sign in page automatically.

Hope this helps !. Kindly let me know if you need more help.