skip to Main Content

Ebay API – how to resolve ( [error] => invalid_client [error_description] => client authentication failed ) for ebay

public function authorizationToken(){ $link = "https://api.ebay.com/identity/v1/oauth2/token"; $codeAuth = base64_encode($this->clientID.':'.$this->certID); $ch = curl_init($link); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded','Authorization: Basic '.$codeAuth)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "grant_type=authorization_code&code=".urlencode($this->authCode)."&redirect_uri=".$this->ruName."&scope=".urlencode('https://api.ebay.com/oauth/api_scope')); $response = curl_exec($ch); $json = json_decode($response, true);$info = curl_getinfo($ch); curl_close($ch);print_r($json);}

VIEW QUESTION

eBay GetMyeBaySellings No XML <RequestPassword> or <RequestToken> was found in XML Request – Ebay API

I want to use the eBay-API to get my sold items. Here is my code: ApiContext apiContext = new ApiContext(); ApiCredential credential = apiContext.getApiCredential(); ApiAccount acc = new ApiAccount(); acc.setApplication("app-id"); acc.setDeveloper("dev-id"); acc.setCertificate("cert"); eBayAccount eBayAccount = new eBayAccount(); eBayAccount.setPassword("ebay user"); eBayAccount.setUsername("ebay…

VIEW QUESTION
Back To Top
Search