Guide to Setting Up a Voting Rewards Script (Webhook)

Voting Notification and Rating Update

After a successful vote, the system will send the following data in form-data format to the specified URL:

ParameterDescription
usernamePlayer nickname who voted
timeVoting time in UnixTime format
signRequest digital signature (see "Digital Signature" section below)

Secret Key Setup

You can set your own secret key or generate a new one. To do this, go to the server or project page and click the "Generate" button next to the "Secret Key" field in the "Rewards System" section.

Digital Signature Generation

For request security, the digital signature is calculated as an MD5 hash of a string generated by the following template:
username|time|secret
This means that the values of the username, time, and your secret key are joined with a vertical bar ("|") and then hashed with MD5.

PHP
TypeScript
Python

Webhook Testing

Use the form below to check your webhook's correct operation. Send a test request and make sure the data is processed correctly.