question

4wheelonline avatar image
1 Like"
4wheelonline asked

How do I get an OAuth Token without using a Redirect URI

I only want to pull my orders from a background process. . . I will not have any users logging in.


.

tokens
· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I would also like a sample for Postman to Request Orders if anyone can share please.


.

0 Likes 0 ·
discmaster85 avatar image
0 Likes"
discmaster85 answered

Did you ever find a solution for this? I have the same use case and finding ebay's design of this api to be very poor. The "user" for me is the app itself and will not have a user behind it clicking through some UI.

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jitendra_developersupport avatar image
0 Likes"
jitendra_developersupport answered

Hi @4wheelonline @discmaster85,

Getting a user access token is a 3 step process.

Please see all of the steps below:

- You need to construct an HTML request that will redirect the user to your application's Grant Application Access page for a getting user consent.
Ref: https://developer.ebay.com/api-docs/static/oauth-consent-request.html

- After successfully getting a user consent, you will get an authorization code returned by the consent request URL. You can use this authorization code for getting a User access token.
Ref: https://developer.ebay.com/api-docs/static/oauth-auth-code-grant-request.html

- An user access token is valid for two hours from the time it was generated. For continued access after the token expires, you must mint a new token using the associated refresh token.
Ref: https://developer.ebay.com/api-docs/static/oauth-refresh-token-request.html


You cannot generate a user access token without getting the user consent.


Best regards,
eBay Developer Support

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

emeem_93 avatar image
0 Likes"
emeem_93 answered

Thank you for posting this i had the same question keep posting.

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.