Difference between revisions of "WebAPI:Teams"

From Starsonata Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
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==
 +
Returns an array teams keyed by team ID. Each team has the following attributes.
 +
* <code>teamID</code> - 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.
 +
* <code>name</code> - The team name.
 +
* <code>totalscore</code> - The current total [[Team Score|score]] of a team.
 +
* <code>member_count</code> - The current number of characters on a team.
 +
 +
Note: totalscore and member_count will likely be missing on inactive teams.
 
[[Category:WebAPI]]
 
[[Category:WebAPI]]

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.