Login And Refresh token

3 posts / 0 new
Last post
Pavel
Login And Refresh token

Hello i try to use the refresh token API but i recive some error.

i use this parameters :

HEADER :

Content-Type: application/json; charset=UTF-8
Accept: application/json; charset=UTF-8
Authorization: Bearer ***access_token****
X-IG-API-KEY: ***API****
IG-ACCOUNT-ID: clientId

BODY :
[refresh_token] => refresh_token

RESPONSE :
Connection: close {"errorCode":"error.security.invalid.accountId"}"

if i change IG-ACCOUNT-ID and i put accountId with this parameters :

HEADER :
Content-Type: application/json; charset=UTF-8
Accept: application/json; charset=UTF-8
Authorization: Bearer ***access_token****
X-IG-API-KEY: ***API****
IG-ACCOUNT-ID: accountId

BODY :
[refresh_token] => refresh_token

Connection: close {"errorCode":"validation.null-not-allowed.request"}" }

why?

mblaublomme
"Request" is a JSON Object

Try this :

request {"refresh_token" : "your refresh token"}

mblaublomme
Correction

Try this :
{"refresh_token" : "your refresh token"}

Log in or register to post comments