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:
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?
Good job figuring out the right query, Mark -- we deprecated the user/<user_id> method of access since we don't really want to encourage passing around Yahoo! IDs directly, so the users;use_login=1 is definitely the preferred pattern.
David, I'm not exactly sure what would be going on with your query -- like Mark, I'm not having any issues hitting that one. The only things I can think of is that the users;use_login=1 query does include a semicolon -- is that possibly throwing off the request that you're putting together? I know I've seen some OAuth libraries get confused and think they ought to be splitting that off as a URL parameter. Are you getting back any extra error messaging as the response along with the 403 error?
If you're still having trouble, post back here and I'll try to investigate further.