| Protocol | Direction | URL |
| HTTPS POST | App server > OAuth2 server | https://oauth-login.cloud.huawei.com/oauth2/v2/token |
This API is used to obtain an access token.
You want to obtain an access token from the OAuth2 server.
grant_type=client_credentials&client_id={appId}&client_secret={secretKey}
| Parameter | Value | Description |
| grant_type | client_credentials | Authentication based on the app certificate. |
| client_id | appId | Your app ID applied in AppGallery Connect. |
| client_secret | secretKey | Your secret key applied in AppGallery Connect. |
| Parameter | Type | Description |
| access_token | String | Access token. |
| expires_in | String | Access token expiration time. |
| token_type | String | Access token type. |