Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixture List #40

Open
Riverhawk20 opened this issue Jul 12, 2022 · 2 comments
Open

Fixture List #40

Riverhawk20 opened this issue Jul 12, 2022 · 2 comments

Comments

@Riverhawk20
Copy link

It appears that the application is getting a 403 forbidden when attempting to retrieve the fixture list. Perhaps FanDuel changed access to this endpoint

@bcanfield
Copy link
Owner

bcanfield commented Jul 13, 2022

Please make sure you are on version 2.0.1.

Also make sure you are initializing your Fanduel Object correctly. See below for an example.

It sounds to me like you are not using the correct headers or credentials.

def example():
    basic_auth_token = ''
    x_auth_token = ''
    fanduel_email = ''

    fanduel_password = ''

    fd = southpaw.Fanduel(
        fanduel_email, fanduel_password, basic_auth_token, x_auth_token)

    print(fd.get_upcoming())
    print(fd.get_entries())
    print(fd.get_entry(fd.get_entries()[0].id))
    print(fd.get_rosters())
    print(fd.get_roster(fd.get_rosters()[0].id))
    print(fd.get_contests())
    print(fd.get_contest(fd.get_contests()[0].id))
    print(fd.get_fixtures())
    print(fd.get_fixture(fd.get_fixtures()[0].id))
    print(fd.get_fixture_lists())
    print(fd.get_fixture_list(fd.get_fixture_lists()[0].id))
    print(fd.get_game_descriptions())
    print(fd.get_game_description(fd.get_game_descriptions()[0].id))
    print(fd.get_player_lists())
    print(fd.get_player_list(fd.get_fixture_lists()[0].id))
    print(fd.get_players_in_entry(fd.get_entries()[0].id))
    print(fd.get_roster_format_in_entry(fd.get_entries()[0].id))

@Riverhawk20
Copy link
Author

Riverhawk20 commented Jul 13, 2022

Upgraded the version and had no luck. I ended up getting the data I needed without using the API. I was able to use the credentials I passed to hit some of the other endpoints, but I had no luck with the fixture endpoint. I'm not sure if this still means my headers are incorrect, but it worked for some of the endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants