Teams Directory
Description
This request will return a directory of the teams that are active in WGL during the current season.
| URI | api.fantasywgl.com/request/{API_KEY}/dir_teams/ |
| Request Method | GET, POST |
Parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| search | FALSE | string | null | Map name search string. Minimum length: 3 characters. |
Response
Meta Information
| Field | Type | Description |
|---|---|---|
| count | integer | Number of teams included in the response |
| timezone | Time zone information about the timestamps in the response | |
| timezone.offset | integer | Number of seconds from UTC (Z ) |
| timezone.abbrev | string | Text format of Time Zone (T ) |
| timezone.diff | string | Hour Differential from UTC (O ) |
Data
| Field | Type | Description |
|---|---|---|
| id | string | The team identifier |
| teamName | string | Name of the team |
| teamShort | string | Shortened format of the team's name |
| clanID | integer | WGL team's Clan ID |
| nextOppID | integer, null | Team's next opponent team ID in the FWGL system |
| nextOppName | string, null | Team's next opponent team name |
| nextMatchID | integer, null | Team's next match ID number |
| nextMatchTime | timestamp, null | Date of team's next match |
Errors
Full List| Code | Message | Description |
|---|---|---|
| 622 | INVALID_SEARCH | The search parameter was not valid. It could have been too short or of the wrong format. |
| 623 | NO_SEARCH_RESULTS | There were results found based on the value sent in the search parameter. |
<?xml version="1.0"?>
<response>
<status>ok</status>
<requestDetails>
<key>demo</key>
<request>dir_teams</request>
<output>xml</output>
<apiKeyAlias>Hyp's Test Environment</apiKeyAlias>
</requestDetails>
<meta>
<count>12</count>
<timezone>
<offset>-28800</offset>
<abbrev>PST</abbrev>
<diff>-0800</diff>
</timezone>
</meta>
<data>
<team>
<id>2</id>
<teamName>Noble eSports</teamName>
<teamShort>NOBL</teamShort>
<clanID>1000018963</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>7</id>
<teamName>S.I.M.P.</teamName>
<teamShort>SIMP</teamShort>
<clanID>1000010296</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>21</id>
<teamName>Googlybobbers</teamName>
<teamShort>GOOG</teamShort>
<clanID>1000012624</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>39</id>
<teamName>High Woltage Caballers</teamName>
<teamShort>HWC</teamShort>
<clanID>1000021351</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>40</id>
<teamName>o7 Gaming</teamName>
<teamShort>O7</teamShort>
<clanID>1000021352</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>41</id>
<teamName>Aquatic M60s</teamName>
<teamShort>AM60</teamShort>
<clanID>1000022700</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>42</id>
<teamName>rivaL - Simple Tankers</teamName>
<teamShort>RIVL</teamShort>
<clanID>1000022701</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>43</id>
<teamName>eClipse</teamName>
<teamShort>ECLP</teamShort>
<clanID>1000022702</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>44</id>
<teamName>DING_NA</teamName>
<teamShort>DING</teamShort>
<clanID>1000022703</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>45</id>
<teamName>Ping999</teamName>
<teamShort>PING</teamShort>
<clanID>1000022708</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>46</id>
<teamName>Caller Wanted</teamName>
<teamShort>CALL</teamShort>
<clanID>1000022709</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
<team>
<id>47</id>
<teamName>Yo</teamName>
<teamShort>YO</teamShort>
<clanID>1000022711</clanID>
<nextOppID/>
<nextOppName/>
<nextMatchID/>
<nextMatchDate/>
</team>
</data>
</response>
{
"status": "ok",
"requestDetails": {
"key": "demo",
"request": "dir_teams",
"output": "json",
"apiKeyAlias": "Hyp's Test Environment"
},
"meta": {
"count": 12,
"timezone": {
"offset": "-28800",
"abbrev": "PST",
"diff": "-0800"
}
},
"data": [
{
"id": 2,
"teamName": "Noble eSports",
"teamShort": "NOBL",
"clanID": "1000018963",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 7,
"teamName": "S.I.M.P.",
"teamShort": "SIMP",
"clanID": "1000010296",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 21,
"teamName": "Googlybobbers",
"teamShort": "GOOG",
"clanID": "1000012624",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 39,
"teamName": "High Woltage Caballers",
"teamShort": "HWC",
"clanID": "1000021351",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 40,
"teamName": "o7 Gaming",
"teamShort": "O7",
"clanID": "1000021352",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 41,
"teamName": "Aquatic M60s",
"teamShort": "AM60",
"clanID": "1000022700",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 42,
"teamName": "rivaL - Simple Tankers",
"teamShort": "RIVL",
"clanID": "1000022701",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 43,
"teamName": "eClipse",
"teamShort": "ECLP",
"clanID": "1000022702",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 44,
"teamName": "DING_NA",
"teamShort": "DING",
"clanID": "1000022703",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 45,
"teamName": "Ping999",
"teamShort": "PING",
"clanID": "1000022708",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 46,
"teamName": "Caller Wanted",
"teamShort": "CALL",
"clanID": "1000022709",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
},
{
"id": 47,
"teamName": "Yo",
"teamShort": "YO",
"clanID": "1000022711",
"nextOppID": null,
"nextOppName": null,
"nextMatchID": null,
"nextMatchDate": null
}
]
}
