Skip to content

Content Push API (Optional) ​

Interface Address ​

https://push.xxxxxx.xxx/partner/chatroom The specific domain will be provided by the Product Manager (e.g., 8–32 characters consisting of uppercase and lowercase letters or digits, with no special characters).

Note: Both iOS and Android certificates must be configured to enable push notifications. Without both, push messages cannot be sent. For example, if testing Android pushes but there is no iOS certificate, please set up a dummy iOS certificate first, and vice versa, ensuring that both iOS and Android certificates have some configuration before testing.


Request Parameters ​

Request Format ​

Note: Use POST request method, and send the following parameters as a JSON stream with set to .

Field NameTypeRequiredDescription
senderlongYesSender's user ID
titlestringNoPush notification title (Only for Android, not required for iOS)
contentstringYesPush notification content (Customizable, consult with the vendor)
gamecodestringYesGame code
servercodestringYesServer code
receiverlist<long>YesRecipient's user ID, list type, multiple IDs separated by commas ',' without spaces in between ; It is recommended not to exceed 500 users
timestamplongYesTimestamp
envintYesEnvironment identifier, ; For iOS, use '0' for testing and '1' for production ; Android does not distinguish between test and production environments, so always use '1'
signaturestringYesVerification code, md5(gamecode+ servercode + sender + receiver + title + content + timestamp + "key") ; The "key" will be provided separately (e.g., 8–32 characters consisting of uppercase and lowercase letters or digits, with no special characters)

Request Parameter Example ​

json
{
    "sender": 123456,
    "title": "test",
    "content": "gamepush",
    "gamecode": "YG",
    "servercode": "s1",
    "receiver": [123, 234, 345],
    "timestamp": 1875432234567,
    "signature": "babw74wt4b6q2if27oquh38qvwehfof",
    "env": 1
}

Response Result ​

Response Format ​

Note: Returned in JSON format.

Field NameDescription
codeStatus code for receiving the push notification request, specific codes are as follows: ; 1000 = Successfully received push request ; 1001 = Incorrect verification code ; 71002 = Push service is turned off ; 71001 = Sending limit has been reached ; 9998 = Parameter error, see message for details ; 9999 or other = System exception
messageStatus description

Response Example ​

json
{"code":"1000","message":"success"}