cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connection fail in Production (request is missing a required parameter or malformed)

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.....

]

]);

 
if ($response) {
$data = json_decode($response->getBody()->getContents());
return $data;
}
}
Message 1 of 3
latest reply
2 REPLIES 2

Connection fail in Production (request is missing a required parameter or malformed)

@nuruzzamanhimel0 

 

In moving from Sandbox to Production, have you remembered to change:

  • client id
  • client secret
  • redirect_uri
ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 3
latest reply

Connection fail in Production (request is missing a required parameter or malformed)

Yes, I changed it but didn't work.

Message 3 of 3
latest reply