Skip to content

The Python API is unable to handle 'params' or 'per_page' values #3

@NLanese

Description

@NLanese
# Fetch and insert players
per_page = 100
current_page = 1

This doesnt work
response = api.nba.players.list(params={"page": current_page, "per_page": per_page})
The error says unexpected argument "params"

This doesn't work
response = api.nba.players.list(page=page, per_page=per_page)
The error says unexpected argument "per_page"

This doesnt work
response = api.nba.players.get(params={"page": current_page, "per_page": per_page})
The error says unexpected argument "params"

This doesn't work
response = api.nba.players.get(page=page, per_page=per_page)
The error says unexpected argument "per_pag

What is the point of having the package if you can't get al the players or use the params that you can use by hitting the API URL? The documentation seems to imply I should be able to do this, but I cannot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions