OwPlayersService
A list of all methods in the OwPlayersService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_players | List players for the Overwatch videogame |
get_ow_players
List players for the Overwatch videogame
- HTTP Method:
GET
- Endpoint:
/ow/players
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverOwPlayers | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwPlayers | ❌ | 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 | SearchOverOwPlayers | ❌ | 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
Player[]
Example Usage Code Snippet
import {
FilterOverOwPlayers,
Page,
PandascoreClient,
RangeOverOwPlayers,
SearchOverOwPlayers,
VideogameId,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const videogameId = VideogameId._1;
const filterOverOwPlayers: FilterOverOwPlayers = {
active: true,
birthday: ['est Excepteur '],
firstName: ['aliquip con'],
id: [1],
lastName: ['sit magna i'],
modifiedAt: ['id q'],
name: ['aliquip'],
nationality: ['Lorem offic'],
role: ['aute ad nu'],
slug: ['4l5'],
teamId: [3],
videogameId: [videogameId],
};
const rangeOverOwPlayers: RangeOverOwPlayers = {
birthday: ['pariat'],
firstName: ['id veniam la'],
id: [10],
lastName: ['laborum vel'],
modifiedAt: ['cupidatat fug'],
name: ['officia an'],
nationality: ['aliquip'],
role: ['est non d'],
slug: ['z3x5kp2w1'],
};
const searchOverOwPlayers: SearchOverOwPlayers = {
birthday: 'cupidatat',
firstName: 'ut qui',
lastName: 'doquis ad ',
name: 'exercita',
nationality: 'irure dolor',
role: 'Duis non',
slug: 'z8o_9ly2hq',
};
const page = 1;
const { data } = await pandascoreClient.owPlayers.getOwPlayers({
filter: filterOverOwPlayers,
range: rangeOverOwPlayers,
sort: [[]],
search: searchOverOwPlayers,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs