02-11-2024 05:46 AM
Hi, I am working with ebay API's. i have connectd Sandbox account and its working fine. But when i want to connect PRODUCTION then it give me error (request is missing a required parameter or malformed). i don't understand where is the problem. My code is here
public function getUserAccessToken($consent_token) {
$client = new Client();
$response = $client->request('POST', "https://api.ebay.com/identity/v1/oauth2/token",
[ 'headers' => [
'content-type' => 'application/x-www-form-urlencoded',
'Authorization' => $this->getBasicAuthorizationHeader()
],
'form_params' => [
'grant_type' => 'authorization_code',
'code' => $consent_token,
'redirect_uri' => xxx.....
]
]);
02-11-2024 10:10 AM
In moving from Sandbox to Production, have you remembered to change:
02-11-2024 07:34 PM
Yes, I changed it but didn't work.