Closed Geromatic closed 1 year ago
Hi @Geromatic
I have fixed the "Internal error."
curl --location --request GET 'https://api.sinric.pro/api/v1/auth/refresh_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer xxxxxxxx' \
--data-urlencode 'refreshToken=xxx'
Response:
{
"success": true,
"accessToken": "xxxxx",
"refreshToken": "xxxx"
}
We will like to know what are you working on!
Home automation system + can you update the api documentation to reflect the change
also it works now
Sample code
Some code omitted - converted nodejs to arduino http
Expect
Returns new access token and refresh token
Result
HTTP Response code: 422 {"success":false,"message":"\"accountId\" is not allowed"} Second attempt removed accountId HTTP Response code: 500 {"success":false,"message":"Internal error."}