yahoo_fantasy_api
yahoo_fantasy_api copied to clipboard
League_Ids Runtime Error
When I run the following code:
oauth = yahoo_oauth.OAuth2(yahooapi_dict['clientid'], yahooapi_dict['clientsecret']) lg = yfa.game.Game(oauth, code = 'nfl').league_ids()
I get the following error: RuntimeError: b'{\n "error": {\n "xml:lang": "en-us",\n "yahoo:uri": "\/fantasy\/v2\/users;use_login=1\/games\/teams?format=json",\n "description": "You do not have the appropriate OAuth scope permissions to perform this action.",\n "detail": ""\n }\n}'
Is this stemming from an error on my part?
I think so, when you created your app on yahoo's developer portal did you check these permissions?