EaSportsFcPlayersService
A list of all methods in the EaSportsFcPlayersService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_fifa_players | List players for the EA Sports FC videogame |
get_fifa_players
List players for the EA Sports FC videogame
- HTTP Method:
GET
- Endpoint:
/fifa/players
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverFifaPlayers | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverFifaPlayers | ❌ | 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 | SearchOverFifaPlayers | ❌ | 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
Player[]
Example Usage Code Snippet
import {
FilterOverFifaPlayers,
Page,
PandascoreClient,
RangeOverFifaPlayers,
SearchOverFifaPlayers,
VideogameId,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const videogameId = VideogameId._1;
const filterOverFifaPlayers: FilterOverFifaPlayers = {
active: true,
birthday: ['exercita'],
firstName: ['eu ex'],
id: [9],
lastName: ['adipisicing'],
modifiedAt: ['in'],
name: ['ullamco'],
nationality: ['minim c'],
role: ['dodolor'],
slug: ['8w'],
teamId: [6],
videogameId: [videogameId],
};
const rangeOverFifaPlayers: RangeOverFifaPlayers = {
birthday: ['suntdolor '],
firstName: ['Ut lab'],
id: [5],
lastName: ['voluptate in qu'],
modifiedAt: ['a'],
name: ['inmagna dolore '],
nationality: ['veniam'],
role: ['cupidatat '],
slug: ['tcgk'],
};
const searchOverFifaPlayers: SearchOverFifaPlayers = {
birthday: 'exercita',
firstName: 'commodo in la',
lastName: 'mollit adipisi',
name: 'tempor magna',
nationality: 'minim iru',
role: 'aliquip',
slug: 'dh5195t0x',
};
const page = 1;
const { data } = await pandascoreClient.eaSportsFcPlayers.getFifaPlayers({
filter: filterOverFifaPlayers,
range: rangeOverFifaPlayers,
sort: [[]],
search: searchOverFifaPlayers,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs