JPush Subscription
The JPush Subscription API subscribes applications to send push notifications in China where Google is disabled.
URL
The HTTP URL for the JPush Subscription API is:
The JPush Subscription API applies the Gateway Filter for Authentication to authenticate a user’s credentials and allow access to the service.
Method
POST
Header
The payload’s request header includes Content-Type as application/json;charset=UTF-8.
Input Parameters
The following fields are input parameters:
Input Parameter | Level – Two | Level – Three | Type | Description |
---|---|---|---|---|
subscriptionService | An array of subscriptionService objects | |||
subscribe | An array of subscribe objects | |||
sid | long | The subscription identification serial number | ||
appId | long | Application ID | ||
ufid | string | The User Friendly Identifier or UFID is used when you subscribe to Volt MX Foundry Engagement Services. Based on your requirement, you can provide an UFID. It is alphanumeric, for example xxx@voltmx.com or 2890XZCY. It can be used to map devices to the user using the value as a reconciliation key | ||
osType | string | Operating system | ||
deviceId | string | A unique ID assigned to the device | ||
isJpush | boolean | Is JPush connectivity true or false |
Header
Based on the content format, the payload’s request header includes Content-Type for:
- XML as text/xml;charset=UTF-8
- JSON as application/json;charset=UTF-8
Sample Request
XML
JSON
Sample Response
XML
JSON
Response Status
Code | Description |
---|---|
Status 200 | Subscription successful |
Status 400 | Invalid request format |
Status 401 | Unauthorized request |
Status 500 | Server failure to process request |