Skip to main content

PubgLeaguesService

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

MethodsDescription
get_pubg_leaguesList PUBG leagues

get_pubg_leagues

List PUBG leagues

  • HTTP Method: GET
  • Endpoint: /pubg/leagues

Parameters

NameTypeRequiredDescription
filterFilterOverPubgLeaguesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverPubgLeaguesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverPubgLeaguesOptions 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

League[]

Example Usage Code Snippet

import {
FilterOverPubgLeagues,
Page,
PandascoreClient,
RangeOverPubgLeagues,
SearchOverPubgLeagues,
} from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});

const filterOverPubgLeagues: FilterOverPubgLeagues = {
id: [8],
modifiedAt: ['ea'],
name: ['ad ex an'],
slug: ['j'],
url: ['proident adi'],
};

const rangeOverPubgLeagues: RangeOverPubgLeagues = {
id: [4],
modifiedAt: ['in dolore '],
name: ['Lorem do'],
slug: ['d6p5l'],
url: ['ut aut'],
};

const searchOverPubgLeagues: SearchOverPubgLeagues = {
name: 'officia',
slug: 'ue4e',
url: 'in eu des',
};
const page = 1;

const { data } = await pandascoreClient.pubgLeagues.getPubgLeagues({
filter: filterOverPubgLeagues,
range: rangeOverPubgLeagues,
sort: [[]],
search: searchOverPubgLeagues,
page: page,
perPage: 50,
});

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →