Setfive / fanduel-api

This is a TypeScript library which allows you to access the REST endpoints that Fanduel.com itself uses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Couldn't login! Inavalid credentials?

eciancio opened this issue · comments

I know my credentials are correct. Am I doing something wrong or does this no longer work correctly?

Ya something definitely broke in the auth layer. Trying to sort out what.

@eciancio fixed this!

ashish@ashish:~/workspace/ts-fd-api$ ts-node examples/findNextSlate.ts 
Soonest slate is:
{ id: '22705',
  label: 'All Day',
  sport: 'NBA',
  late_swap: false,
  _url: 'https://api.fanduel.com/fixture-lists/22705',
  salary_cap: 60000,
  players: { _url: 'https://api.fanduel.com/fixture-lists/22705/players' },
  contests: 
   { contest_types: [ [Object], [Object], [Object], [Object], [Object] ],
     _url: 'https://api.fanduel.com/contests?fixture_list=22705&status=open',
     pinned_count: 13,
     count: 198 },
  game_description: { _ref: 'game_descriptions.id', _members: [ '25' ] },
  start_date: '2017-12-31T20:30:00Z',
  game_description_name: 'NBA',
  status: { final: false, started: false } }