Skip to main content

RlLeaguesService

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

MethodsDescription
get_rl_leaguesList RL leagues

get_rl_leagues

List RL leagues

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

Parameters

NameTypeRequiredDescription
filterFilterOverRlLeaguesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverRlLeaguesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverRlLeaguesOptions 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 {
FilterOverRlLeagues,
Page,
PandascoreClient,
RangeOverRlLeagues,
SearchOverRlLeagues,
} from 'pandascore_client';

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

const filterOverRlLeagues: FilterOverRlLeagues = {
id: [7],
modifiedAt: ['ea'],
name: ['animea'],
slug: ['4p40'],
url: ['consectetu'],
};

const rangeOverRlLeagues: RangeOverRlLeagues = {
id: [4],
modifiedAt: ['sunt do labori'],
name: ['ex es'],
slug: ['7l'],
url: ['aliquip cul'],
};

const searchOverRlLeagues: SearchOverRlLeagues = {
name: 'ut consequat',
slug: 'no017ax',
url: 'do veniam',
};
const page = 1;

const { data } = await pandascoreClient.rlLeagues.getRlLeagues({
filter: filterOverRlLeagues,
range: rangeOverRlLeagues,
sort: [[]],
search: searchOverRlLeagues,
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 →