Reputation: 63
When I use this api to get access token:
it always returns
{
"sub_error": 20001,
"error_description": "missing required parameter: client_id",
"error": 1102
}
although I send client_id parameter
Upvotes: 0
Views: 576
Reputation: 63
To solve the issue, Please make sure the below points
You are doing post request to the server
Make sure that the POSR URL is “https://oauth-login.cloud.huawei.com/oauth2/v3/token”.
Do not include post parameters in the URL, Add below parameters in body of POST request(If you use postman tool you can find the feilds for adding parameters)
grant_type=client_credentials
client_id= Your Client ID
client_secret= Your Client secret
For more details about fetching the access token, please refer the below link:
Upvotes: 2