Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Push Kit allows you to use HTTPS to access its server and send uplink messages and downlink messages. This section describes the downlink messaging.
The following figure shows the downlink messaging.

URL for calling the API using HTTPS POST:
POST https://push-api.cloud.huawei.com/v1/[clientid]/messages:send
Replace the value of [clientid] with the client ID of your app, which can be obtained from the Project settings page.
Request header example:
Content-Type: application/json; charset=UTF-8 Authorization: Bearer CF3Xl2XV6****************************************Nm3WccUIaDg==
{
"validate_only": false,
"message": {
"android": {
"notification": {
"title": "test title",
"body": "test body",
"click_action": {
"type": 3
}
}
},
"token": ["pushtoken1"]
}
} {
"validate_only": false,
"message": {
"data": "{'param1':'value1','param2':'value2'}",
"token": ["pushtoken1"]
}
} For details request parameters, please refer to Sending Downlink Messages.
Huawei provides Java Sample Code for you to encapsulate server APIs.