Votes API: How-to

To allow you develop own plugins with our vote system we provide simple API.

To check if a user has voted or not you need:

  • User steamID64
  • Rust-Servers.Info ServerID
GET https://api.rust-servers.info/plugins/get.php?uid=76561197997238749&sid=483&hours=12&type=text

Parameters:

  • uid = User steamID64, eg 76561197997238749
  • sid = Rust-Servers.Info ServerID
  • hours = Period in hours, during which the voice is not considered as obsolete
  • type = In what format do you want to receive an answer. Eg type=text for Plain Text or type=json for JSON. (This parameter is optional. JSON by default)

Results:

JSON value true/false:

{"result":true}

Plain Text 1/0:

1

If you need to register that a user has received their award:

To Be Done.

Categories:

Leave a Reply

Your email address will not be published. Required fields are marked *