Difference between revisions of "Rival Regions API"
From Rival Regions Wiki
| Line 30: | Line 30: | ||
'''?depId=[int]''' - optional parameter | '''?depId=[int]''' - optional parameter | ||
| + | |||
| + | === /getUsers === | ||
| + | Returns players according to one of the provided parameter: | ||
| + | |||
| + | '''?regionId=[int]''' | ||
| + | |||
| + | '''?stateId=[int]''' | ||
| + | |||
| + | '''?regionResidencyId=[int]''' | ||
| + | |||
| + | '''?stateResidencyId=[int]''' | ||
| + | |||
| + | '''?partyId=[int]''' | ||
| + | |||
| + | '''?userId=[int]''' | ||
Latest revision as of 10:26, 16 September 2022
Some basic info on Rival Regions API. URL:
| https://api.rivalregions.com/client/v1 |
Authorisation is done with a header:
| Authorization: Bearer API_KEY |
You can get your API_KEY by contacting wm@rivalregions.com
You can also specify a server in a GET parameter for any API request:
?server=[main / tr] - optional parameter, defaults to main
/getBuildigsNeeded
Returns the minimum building level for each Index.
/getRegions
Returns basic info about all the regions.
/getDepartmentsLog
Returns list of players who worked in the departments.
?start=[int] - optional parameter, defaults to [Unix Time Stamp]-24*3600
?stateId=[int] - optional parameter
?depId=[int] - optional parameter
/getUsers
Returns players according to one of the provided parameter:
?regionId=[int]
?stateId=[int]
?regionResidencyId=[int]
?stateResidencyId=[int]
?partyId=[int]
?userId=[int]