question

rk-easyshopping avatar image
0 Likes"
rk-easyshopping asked

Problems with refresh Token: "invalid_client"

I will create a new Refresh Token. I have used my code many times and it ever worked.

But since a week I get only the answer

{"error":"invalid_client","error_description":"client authentication failed"}

I checked everything 10 times and nothing helped.

refresh token
· 2
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

michab2003 avatar image michab2003 commented ·
maybe because of this ?
0 Likes 0 ·
ardonis-2000 avatar image ardonis-2000 michab2003 commented ·

"token" call is not in the list of APIs/methods that requires a signature.

0 Likes 0 ·
rk-easyshopping avatar image
0 Likes"
rk-easyshopping answered

getTransactions works for me with the old auth.

I don´t think that I need it for the token request. Am I right?

There is nothing in the documentation.

· 3
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

michab2003 avatar image michab2003 commented ·
you didn´t say which call u are using. i will never understand how people expect help by just posting a useless error string without any further information. if you need a signature or not is explained in the link. it was just a guess without knowing anything (because you did not provide any useful information).
0 Likes 0 ·
ardonis-2000 avatar image ardonis-2000 michab2003 commented ·

To get a refresh token the call is identity/v1/oauth2/token

0 Likes 0 ·
rk-easyshopping avatar image rk-easyshopping commented ·
Yes, getTransactions works also at me with the old auth. But nothing else.
0 Likes 0 ·
ardonis-2000 avatar image
0 Likes"
ardonis-2000 answered

A "token" call uses simple HTTP basic authorization. Your app-id and authcert are the username and password. Maybe they changed (keyset page developer account)?

· 7
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rk-easyshopping avatar image rk-easyshopping commented ·
I have doublecked it around 10 times since 2 weeks. I can´t find any change or error. The same data works at getTransaction with the old auth.
0 Likes 0 ·
michab2003 avatar image michab2003 rk-easyshopping commented ·
i did write to you directly, if you don´t respond I cannot help you ;)
0 Likes 0 ·
rk-easyshopping avatar image rk-easyshopping michab2003 commented ·
Where can I see that?
0 Likes 0 ·
Show more comments
Show more comments
ardonis-2000 avatar image ardonis-2000 rk-easyshopping commented ·

Sorry i'm confused. do you can't refresh the OAuth token? Is this your Problem? getTransactions will only works without Signature (EU/UK) until the end of the year.

0 Likes 0 ·
rk-easyshopping avatar image rk-easyshopping ardonis-2000 commented ·
Yes, I need a new RefreshToken for Oauth. getTransaction is NOT the problem!

I must change my inventory, prices and descriptions over the API. All of this need an Oauth token.


0 Likes 0 ·
rk-easyshopping avatar image
0 Likes"
rk-easyshopping answered

I had posted my code, but it was deleted. And then the request was halted 6 days. :-( So today I started a new request.

Here is my code again:

$authCode = ''; I get it from code-tag with the link at

Get a Token from eBay via Your Application


$appId = "xxx"; // = client_id
$devId = "yyy";
$certId = "zzz"; // = client_secret

$link = "https://api.ebay.com/identity/v1/oauth2/token";
$codeAuth = base64_encode($appId.':'.$certID);
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/x-www-form-urlencoded',
'Authorization: Basic '.$codeAuth
));
curl_setopt($ch, CURLHEADER_SEPARATE, true);
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=".$authCode."&redirect_uri=RK_Easyshopping-RKEasysh-SPAP-P-xnuviiq");
curl_setopt($ch, CURLOPT_POSTFIELDS, "grant_type=authorization_code&code=".$authCode."&redirect_uri=RK_Easyshopping-RKEasysh-SPAP-P-xnuviiq");
$response = curl_exec($ch);
$json = json_decode($response, true);
$info = curl_getinfo($ch);
curl_close($ch);

$authToken = $json["access_token"];
$refreshToken = $json["refresh_token"];

print "Token 1: ".$authToken."</br>";
print "Token 2: ".$refreshToken."</br>";
print_r($response);

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rk-easyshopping avatar image
0 Likes"
rk-easyshopping answered

Has noone an idea or an better manual as ebay have?

· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

michab2003 avatar image michab2003 commented ·
alter schwede, bist du immer noch damit beschäftigt ? du hast mir geschrieben, ich hab dir geantwortet, von dir kam nix mehr und jetzt hängst du immer noch hier rum mit dem gleichen problem. also da muss man sich schon mal die fragen: WTF ? ;-)))


0 Likes 0 ·
rk-easyshopping avatar image
0 Likes"
rk-easyshopping answered

Ja, ich hatte Dir auf 2 Wegen geschrieben. Leider habe ich keine Antwort gesehen. Hast Du direkt auf meine Mailadresse geantwortet?

· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

michab2003 avatar image michab2003 commented ·
dann schau mal in deinen spam ordner LOL - klar, wenn ich eine email bekomme, dann drücke ich antworten - denke das machen die meisten so ;-))
0 Likes 0 ·

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.