Hello,
I understand how to query information about a league once I have the league key. I also understand that I can get the league key by going to the webpage for my league and looking at the url, and using that in combination with the applicable game code.
However, I don't want a user to have to do that 2nd step for me. After they authorize access using their yahoo id, I want to be able to get the league keys for the leagues they are a member of with some kind of query. How would I do that?
I tried using the games collection and I also tried a query like this:
CODE
http://fantasysports.yahooapis.com/fantasy/v2/user/{user_id}/teams
These queries have been returning "forbidden access" errors, even when I just make them using the YQL console to eliminate errors in my app as a possible problem. Maybe I am just unclear what the user_id actually is?
Thanks for any help!