OwTeamsService
A list of all methods in the OwTeamsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_teams | List teams for the Overwatch videogame |
get_ow_teams
List teams for the Overwatch videogame
- HTTP Method:
GET
- Endpoint:
/ow/teams
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverOwTeams | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwTeams | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
search | SearchOverOwTeams | ❌ | Options to search results For more information on searching, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
Return Type
Team[]
Example Usage Code Snippet
import {
FilterOverOwTeams,
Page,
PandascoreClient,
RangeOverOwTeams,
SearchOverOwTeams,
VideogameId,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const videogameId = VideogameId._1;
const filterOverOwTeams: FilterOverOwTeams = {
acronym: ['cupid'],
id: [1],
location: ['cupidat'],
modifiedAt: ['esse nostrud i'],
name: ['dolore rep'],
slug: ['q'],
videogameId: [videogameId],
};
const rangeOverOwTeams: RangeOverOwTeams = {
acronym: ['nulla c'],
id: [8],
location: ['quis magn'],
modifiedAt: ['fu'],
name: ['cillum'],
slug: ['t2t8'],
};
const searchOverOwTeams: SearchOverOwTeams = {
acronym: 'aliquip',
location: 'veniam non i',
name: 'Lorem',
slug: '8kr9',
};
const page = 1;
const { data } = await pandascoreClient.owTeams.getOwTeams({
filter: filterOverOwTeams,
range: rangeOverOwTeams,
sort: [[]],
search: searchOverOwTeams,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs