Skip to main content

EaSportsFcLeaguesService

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

MethodsDescription
get_fifa_leaguesList EA Sports FC leagues

get_fifa_leagues

List EA Sports FC leagues

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

Parameters

NameTypeRequiredDescription
filterFilterOverFifaLeaguesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverFifaLeaguesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverFifaLeaguesOptions 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 {
FilterOverFifaLeagues,
Page,
PandascoreClient,
RangeOverFifaLeagues,
SearchOverFifaLeagues,
} from 'pandascore_client';

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

const filterOverFifaLeagues: FilterOverFifaLeagues = {
id: [9],
modifiedAt: ['adipisicing'],
name: ['aliqua non'],
slug: ['uawy_:e'],
url: ['labor'],
};

const rangeOverFifaLeagues: RangeOverFifaLeagues = {
id: [4],
modifiedAt: ['mini'],
name: ['ex Excep'],
slug: ['6'],
url: ['sint eu '],
};

const searchOverFifaLeagues: SearchOverFifaLeagues = {
name: 'cillum',
slug: '6d',
url: 'non ullamco ',
};
const page = 1;

const { data } = await pandascoreClient.eaSportsFcLeagues.getFifaLeagues({
filter: filterOverFifaLeagues,
range: rangeOverFifaLeagues,
sort: [[]],
search: searchOverFifaLeagues,
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 →