Skip to content

Latest commit

 

History

History
133 lines (118 loc) · 4.24 KB

File metadata and controls

133 lines (118 loc) · 4.24 KB

StarCraft2PlayersService

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

Methods Description
get_starcraft_2_players List players for the StarCraft 2 videogame

get_starcraft_2_players

List players for the StarCraft 2 videogame

  • HTTP Method: GET
  • Endpoint: /starcraft-2/players

Parameters

Name Type Required Description
filter FilterOverStarcraft2Players Options to filter results. String fields are case sensitive
For more information on filtering, see docs.
range RangeOverStarcraft2Players Options to select results within ranges
For more information on ranges, see docs.
sort List[any] Options to sort results
For more information on sorting, see docs.
search SearchOverStarcraft2Players 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
per_page int Equivalent to page[size]

Return Type

List[Player]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverStarcraft2Players, RangeOverStarcraft2Players, SearchOverStarcraft2Players

sdk = PandascoreClient(
    access_token="YOUR_ACCESS_TOKEN",
    base_url=Environment.DEFAULT.value,
    timeout=10000
)
filter=FilterOverStarcraft2Players(
    active=False,
    birthday=[
        "Utirure en"
    ],
    first_name=[
        "nulla"
    ],
    id_=[
        8
    ],
    last_name=[
        "tempor do"
    ],
    modified_at=[
        "iru"
    ],
    name=[
        "officia in "
    ],
    nationality=[
        "Duisin"
    ],
    role=[
        "laboris nisi ad"
    ],
    slug=[
        "6akrbwuj"
    ],
    team_id=[
        7
    ],
    videogame_id=[
        1
    ]
)
range=RangeOverStarcraft2Players(
    birthday=[
        "do cupidatat a"
    ],
    first_name=[
        "dolor la"
    ],
    id_=[
        5
    ],
    last_name=[
        "velit sit "
    ],
    modified_at=[
        "repreh"
    ],
    name=[
        "labore l"
    ],
    nationality=[
        "magna amet Dui"
    ],
    role=[
        "mollit Duis"
    ],
    slug=[
        "s1"
    ]
)
sort=[
    ""
]
search=SearchOverStarcraft2Players(
    birthday="eiusm",
    first_name="enim si",
    last_name="consequat s",
    name="proiden",
    nationality="fugiat eu sint",
    role="nulla",
    slug="7-mandz0"
)
page=1

result = sdk.star_craft_2_players.get_starcraft_2_players(
    filter=filter,
    range=range,
    sort=sort,
    search=search,
    page=page,
    per_page=50
)

print(result)