Are there any "public" queries I can make through this api? For example, it seems like player information wouldn't require OAuth since the data returned is independent of any private games, rosters, or leagues, but the following only works when an OAuth session is instantiated (the uncommented line). Instantiating a YahooApplication with a consumer key isn't enough.
//$obj = new YahooApplication($consumerKey, $consumerSecret); $obj = YahooSession::requireSession($consumerKey, $consumerSecret);
$response = $obj->query("select * from fantasysports.players where player_key='238.p.6619'");
If accessing this data isn't possible without OAuth, is there any way I can save Oauth tokens to/from my own account such that running an automated routine would be possible, or do I have to be concerned with the OAuth tokens expiring? Ideally, if "public" querying is unavailable, I would like to automate authentication to my own Yahoo account so that I can access this data automatically. Is this possible?
So, in general, the answer is "yes". As far as our services are concerned, they expect to see a request come through that's properly authenticated via 3-legged OAuth (with the appropriate scopes). There isn't really any public view, because most of the data that we care about is tied to a user anyway, so we hadn't seen any need to differentiate "public" data from everything else.