WebAPI:Teams

From Starsonata Wiki
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
Returns a list of all player [[team|teams]].
 
Returns a list of all player [[team|teams]].
  
 +
==Parameters==
 +
<code>https://www.starsonata.com/webapi/teams/v1</code>
 +
 +
No parameters.
 
==Response==
 
==Response==
 
Returns an array teams keyed by team ID. Each team has the following attributes.
 
Returns an array teams keyed by team ID. Each team has the following attributes.

Latest revision as of 18:05, 9 November 2019

Returns a list of all player teams.

Parameters

https://www.starsonata.com/webapi/teams/v1

No parameters.

Response

Returns an array teams keyed by team ID. Each team has the following attributes.

  • teamID - The ID of the team used all over the website and api endpoints. Can be used to retrieve the team flag or the team web page.
  • name - The team name.
  • totalscore - The current total score of a team.
  • member_count - The current number of characters on a team.

Note: totalscore and member_count will likely be missing on inactive teams.

Development