Skip to main content

OwMapsService

A list of all methods in the OwMapsService service. Click on the method name to view detailed information about that method.

MethodsDescription
get_ow_mapsList maps
get_ow_maps_owMapIdOrSlugGet a single map by ID or by slug

get_ow_maps

List maps

  • HTTP Method: GET
  • Endpoint: /ow/maps

Parameters

NameTypeRequiredDescription
filterFilterOverOwMapsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverOwMapsOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverOwMapsOptions to search results
For more information on searching, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent 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

NameTypeRequiredDescription
owMapIdOrSlugOwMapIdOrSlugA 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

Start for Free →