Notifications Webhook
Use our webhooks to receive notifications from Gameball application.
Notifications webhook is triggered with every notification generated at Gameball for a player. Once a notification is generated, its details and text are sent through the webhook.
Common webhook use cases include, but not limited to, the following:
    Sending notifications to IM clients and pagers
    Sending notifications via SMS to mobile
To get a better idea on how to build your own notification system using this webhook, you may find it useful to follow this tutorial.

Notifications Webhook POST Data

Parameter
Type
Description
playerUniqueId
string
Unique identifier for the player in your database.
Could be database ID, random string, email or anything that uniquely identifies the player.
notifications
array
Array of notification objects generated for player
The notification object is described as follows:
{ "icon":"https://.../image.png",
"type":1,
"body":"Congratulations",
"title":"Congratulations",
"local":"en"
}
    icon: Image URL of notification
    type: Appearance type of notification
    body: Notification body text
    title : Notification title text
    local: Local code. Example: "en"
1
{
2
"playerUniqueId":"[email protected]",
3
"notifications":[
4
{
5
"icon":"https://cdn.gameball.co/uploads/c/image.png",
6
"type":1,
7
"body":"Congratulations",
8
"title":"Congratulations",
9
"local":"en"
10
},
11
{
12
"icon":"https://cdn.gameball.co/uploads/c/image.png",
13
"type":1,
14
"body":"FĂ©licitations",
15
"title":"FĂ©licitations",
16
"local":"fr"
17
}
18
]
19
}
Copied!
You can now enjoy notifications on selected events that you have subscribed to.
Last modified 2mo ago