question

foret_fruitiere avatar image
0 Likes"
foret_fruitiere asked

Fullfillment API with Java. What to do with oauth2Api.generateUserAuthorizationUrl?

Hi there,

I haven't been able yet to find the definitive documentation about how to start from scratch...
I read tons of small tutorials, but I'm not sure they're up to date, as I can't find all the methods/objects that I see in them.
Anyway. Lately, I found inspiration with https://ebaydts.com/eBayKBDetails?KBid=5075 and https://developer.ebay.com/api-docs/static/oauth-redirect-uri.html .

I know have a small Java piece of code that generates a URL, but now what?

When I access this URL within my browser, I get

So everything looks fine, but how should I handle that on my application side? I tried to follow the redirection with the HttpClient, but I think I end up with an error.
The latest request seems to be:

GET /n/error?statuscode=500 HTTP/1.1 [Host: www.ebay.com, Connection: Keep-Alive, User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_292), Cookie: dp1=bu1p/whatever/whatever^; ebay=whatever; nonsession=whatever; s=whatever, Accept-Encoding: gzip,deflate]

I generated the Java source files for the latest version of the API (swagger java client).

Would anyone have a suggestion for a total beginner?

Thanks.

oauth2Javafullfillment api
10 |600 characters needed characters left characters exceeded

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

0 Answers

· Write an Answer

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.