Endpoints

Vote API Endpoint

The Vote API endpoint provides the necessary functionality to claim rewards based on voting by players. This section details how to make requests to this endpoint and handle the responses.

Endpoint URL

POST https://api.teamgames.io/v3/vote/reward/claim

Headers

HeaderTypeDescription

Authorization

string

Bearer token for API key authentication

Request Body

Request Parameters

ParameterDescription

player

The name of the player.

reward

The reward identifier.

amount

The amount of the reward.

CURL Example

Here is an example of how to make a request to the Vote API using CURL:

curl -X POST https://api.teamgames.io/v3/vote/reward/claim \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \
-d "player=player123&reward=reward_id&amount=100"

Last updated