You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_get_upcoming():
basic_auth_token = 'look up basic_auth_token'
x_auth_token = 'look up long ass x_auth_token'
fanduel_email = 'put in your email'
fanduel_password = 'put in your pw'
fd = southpaw.Fanduel(fanduel_email, fanduel_password, basic_auth_token, x_auth_token)
print(fd.get_upcoming())
entries = fd.get_entries()
print(entries)
if entries:
print(fd.get_entry(entries[0].id))
rosters = fd.get_rosters()
print(rosters)
if rosters:
print(fd.get_roster(rosters[0].id))
contests = fd.get_contests()
print(contests)
if contests:
print(fd.get_contest(contests[0].id))
fixtures = fd.get_fixtures()
print(fixtures)
if fixtures:
print(fd.get_fixture(fixtures[0].id))
fixture_lists = fd.get_fixture_lists()
print(fixture_lists)
if fixture_lists:
print(fd.get_fixture_list(fixture_lists[0].id))
game_descriptions = fd.get_game_descriptions()
print(game_descriptions)
if game_descriptions:
print(fd.get_game_description(game_descriptions[0].id))
player_lists = fd.get_player_lists()
print(player_lists)
if player_lists:
print(fd.get_player_list(player_lists[0].id))
if entries:
print(fd.get_players_in_entry(entries[0].id))
print(fd.get_roster_format_in_entry(entries[0].id))
test_get_upcoming()
The text was updated successfully, but these errors were encountered:
ryanstoic
changed the title
Fixed test_fanduel.py list index out of range and added function call at bottom for the noobies
Fixed test_fanduel.py 'list index out of range' and added function call at bottom for the noobies
Nov 12, 2023
import southpaw
def test_get_upcoming():
basic_auth_token = 'look up basic_auth_token'
x_auth_token = 'look up long ass x_auth_token'
fanduel_email = 'put in your email'
test_get_upcoming()
The text was updated successfully, but these errors were encountered: