question

sic286 avatar image
0 Likes"
sic286 asked ·

Auth not working using PHP oauth2 client

Hi everyone, on my website I want to use the ebay api to get the price info of a few items to display on my site. Now, I am using Drupal 8 and the PHP oauth2 client ( https://github.com/thephpleague/oauth2-client). I've set up everything correctly but when opening my route I get the error: {"error_id":"invalid_request","error_description":"Input request parameters are invalid.","http_status_code":400} I have already manually went through the whole procedure and successfully received the user and refresh tokens. So, in Insomnia (REST client like postman) I tried to open the token URL using a get parameter: https://auth.ebay.com/oauth2/authorize?client_id=myid&redirect_uri=myred&response_type=code&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope&state=77 And received 405 page where I had to solve a captcha. Am I doing something wrong?
authentication failed
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.