How to get access token for Huawei Api for sending push to device?
问题 I need to send push to Huawei device, which have app with Huawei Push Kit integrated. To do this I need accessToken. How to receive it? I've already create developer account and create project for app. 回答1: You need to do POST request to https://oauth-login.cloud.huawei.com/oauth2/v3/token Add header Content-Type: application/x-www-form-urlencoded Add params: grant_type=client_credentials client_id=CLIENT_ID_FROM_DEV_CONSOLE client_secret=CLIENT_SECRET_FROM_DEV_CONSOLE Request using curl: