Licensed
Gamezop can send score updates from Individual Games to your backend. Use this data to build leaderboards, save score data, or reward users.
A gameplay is a single run of a game, from the moment the player starts playing until the game ends. If the player plays again, a new gameplay starts. All the gameplays from when the game loads until the game page is refreshed or reloaded make up one session.
How server-side webhooks work
Configure the webhook
To receive user scores, provide a POST API or webhook URL. Gamezop sends score updates to this endpoint. In order for this to work, you must also append apuid query parameter to the game url received in the All Games API.
For example: https://3025.play.gamezop.com/g/NyM_JGWcx?puid=user-123
The value of this puid param must be a unique user identifier for the user playing the game. Max supported length of this value is 100 characters. Scores are always scoped to a game and user identifier.
Your webhook endpoint
POSThttps://api.publisher-xyz.com/games/score
Gamezop posts user scores to your webhook.
Headers
Upon receiving scores from us, you must respond with an HTTP 200 Status Code
In the body of the webhook, Gamezop will send a JSON object when your users’ scores update. The data body will contain the following fields:
For client-side game events, see Individual Games client-side callbacks.