Steps
- Login into Sadad account and get the Client Key and Client Secret under the profile page.
- Call to the endpoint /api/User/GenerateRefreshToken to get the refresh token.
- Save refresh token securely as you will always reuse it to get new access tokens.
Request
You should do a basic authorization to GenerateRefreshToken request using the Sadad Client Key and Client Secret.
![Install App](https://files.readme.io/3fcaa3e-Screenshot_from_2023-09-20_09-36-21.png)
Basic authentication
Response
{
"isValid": true,
"errorKey": null,
"response": {
"refreshToken": "REFRESH TOKEN"
}
}
{
"isValid": false,
"errorKey": "UnauthorizedAccess",
"response": null
}