teamgames
  • Welcome
    • Introduction to TeamGames
  • Pre-installation
    • Authentication
    • Supported Games
  • STORE API
    • Java Overview
    • Endpoints
  • VOTE API
    • Java Overview
    • Endpoints
  • LEADERBOARD API
    • Java Overview
    • Endpoints
  • Toplist (Non API)
    • Callback
  • Debugging
    • FAQ
  • Contributors
    • Contributions
  • Support Channels
    • Community Discord
Powered by GitBook
On this page
  • Vote API Endpoint
  • Endpoint URL
  • Headers
  • Request Parameters
  • CURL Example

Was this helpful?

  1. VOTE API

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

Header
Type
Description

Authorization

string

Bearer token for API key authentication

Request Body

Request Parameters

Parameter
Description

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"
PreviousJava OverviewNextJava Overview

Last updated 1 year ago

Was this helpful?