GET: https://rotic.ir/oauth/authorize
{ "code": Incoming authorization code, "state": State string you sent, }
{ "error": "invalid_client", "error_description": "Client authentication failed", "message": "Client authentication failed" }
{ "error": "invalid_scope", "error_description": "The requested scope is invalid, unknown, or malformed", "hint": "Check the __ scope", "message": "The requested scope is invalid, unknown, or malformed" }
POST: https://rotic.ir/oauth/token
{ "token_type": "Bearer", "expires_in": Expiration time, "access_token": Access token provided by system }
{ "error": "invalid_client", "error_description": "Client authentication failed", "message": "Client authentication failed" }
{ "error":"invalid_request", "error_description":"The request is missing a required parameter, includes an invalid parameter", "hint": "Check the authorization code", "message": "The requested authorization code is invalid, unknown, or malformed" }