Skip to content

Update lol.league.ListPlayers to pass a page number in the request options. #79

@2ajoyce

Description

@2ajoyce

Currently, this method only returns the first page (205) of summoners. We can address this by using the RequestOptions param to pass a page number along with the request.

if err := l.c.GetInto(fmt.Sprintf(endpointGetLeagues, queue, tier, division), &leagues); err != nil {

For reference, the riot endpoint looks like this.

https://na1.api.riotgames.com/lol/league/v4/entries/RANKED_SOLO_5x5/GOLD/I?page=180

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions