Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get Huawei oauth2 token
curl --location --request POST 'https://oauth-login.cloud.huawei.com/oauth2/v3/token' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=client_credentials' \
  --data-urlencode 'client_secret=CLIENT_SECRET' \
  --data-urlencode 'client_id=CLIENT_ID'

CLIENT_SECRET: 'App Secret' field on Huawei UI

CLIENT_ID: 'App ID' field on Huawei UI

huawei_info

Source: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/38054564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment