Skip to content

Instantly share code, notes, and snippets.

@baybatu
Last active December 8, 2020 08:33
Show Gist options
  • Save baybatu/d81e45d8b3b40c4f20bd1d289f92fd41 to your computer and use it in GitHub Desktop.
Save baybatu/d81e45d8b3b40c4f20bd1d289f92fd41 to your computer and use it in GitHub Desktop.
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