cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
652 stars 209 forks source link

Exception: Access denied #36

Closed bluesforsalvador closed 5 years ago

bluesforsalvador commented 5 years ago

I'm getting this access denied error when I try to set up the variable "League" I'm sure it's something simple. I'm in Windows.

Can anyone help? Thanks,

from ff_espn_api import League
import numpy as np

league_id = 88888
year = 2019
league = League(league_id, year)

image

dtcarls commented 5 years ago

Is your league private? You will need to set swid and espn_s2 in league initialization or make your league public.

On Tue, Sep 10, 2019 at 7:25 PM bluesforsalvador notifications@github.com wrote:

I'm getting this access denied error when I try to set up the variable "League" I'm sure it's something simple. I'm in Windows.

Can anyone help? Thanks,

**from ff_espn_api import League import numpy as np

league_id = 88888 year = 2019 league = League(league_id, year)**

[image: image] https://user-images.githubusercontent.com/2042613/64657279-b3044200-d400-11e9-8a4c-c6d5fb2e4a98.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cwendt94/ff-espn-api/issues/36?email_source=notifications&email_token=ACWGOWPPOO3QKYXZJUTRIC3QJAUIDA5CNFSM4IVNR6I2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKSO6EA, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWGOWLQLT35XIYVYX5PMF3QJAUIDANCNFSM4IVNR6IQ .

bluesforsalvador commented 5 years ago

ahhh, weird...I thought my league was public, but apparently it was private...that fixed my access issue...thanks!