OwMapsService
A list of all methods in the OwMapsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_maps | List maps |
get_ow_maps_owMapIdOrSlug | Get a single map by ID or by slug |
get_ow_maps
List maps
- HTTP Method:
GET
- Endpoint:
/ow/maps
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverOwMaps | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwMaps | ❌ | 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 | SearchOverOwMaps | ❌ | 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
OwMap[]
Example Usage Code Snippet
import {
FilterOverOwMaps,
OwMapGameMode,
Page,
PandascoreClient,
RangeOverOwMaps,
SearchOverOwMaps,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const owMapGameMode = OwMapGameMode.ASSAULT;
const filterOverOwMaps: FilterOverOwMaps = {
gameMode: [owMapGameMode],
id: [8],
name: ['fugiat'],
slug: ['uai7oxrjj5c'],
};
const owMapGameMode1 = OwMapGameMode.ASSAULT;
const rangeOverOwMaps: RangeOverOwMaps = {
gameMode: [owMapGameMode1],
id: [6],
name: ['magna ess'],
slug: ['2'],
};
const owMapGameMode12 = OwMapGameMode.ASSAULT;
const searchOverOwMaps: SearchOverOwMaps = {
gameMode: owMapGameMode12,
name: 'id fugiat t',
slug: '7jd1r8oey',
};
const page = 1;
const { data } = await pandascoreClient.owMaps.getOwMaps({
filter: filterOverOwMaps,
range: rangeOverOwMaps,
sort: [[]],
search: searchOverOwMaps,
page: page,
perPage: 50,
});
console.log(data);
})();
get_ow_maps_owMapIdOrSlug
Get a single map by ID or by slug
- HTTP Method:
GET
- Endpoint:
/ow/maps/{ow_map_id_or_slug}
Parameters
Name | Type | Required | Description |
---|---|---|---|
owMapIdOrSlug | OwMapIdOrSlug | ✅ | A map ID or slug |
Return Type
OwMap
Example Usage Code Snippet
import { OwMapIdOrSlug, PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const owMapIdOrSlug = 4;
const { data } = await pandascoreClient.owMaps.getOwMapsOwMapIdOrSlug();
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs