question

ustrade20 avatar image
0 Likes"
ustrade20 asked ·

I want to get authorization code but getting the invalid_request error by the below code, please help.,user consent api, want to get authorization code through api, but getting error, =invalid_request

I want to get authorization code but getting the invalid_request error by the below code, please help. $str = 'https://auth.ebay.com/oauth2/authorize?client_id=xxxx-xxx-xx-x-xx& redirect_uri=xxxxxx@gmail.com&response_type=code&scope='.urlencode('https://api.ebay.com/oauth/api_scope/sell.inventory').'&prompt=login'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $str); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, TRUE); $response = curl_exec($ch); curl_close($ch); dd($response); It is giving me the below error. https://auth.ebay.com/oauth2/error?errorId=invalid_request
authorization code grant
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.