Tag: yahoo api

Yahoo Sports API问题

我正在尝试设置一个使用Yahoo Fantasy体育API的简单应用程序,并允许通过YQL执行查询。 class Program { static void Main(string[] args) { string yql = “select * from fantasysports.games where game_key in (‘268’)”; //var xml = QueryYahoo(yql); // Console.Write(xml.InnerText); string consumerKey = “–my key–“; string consumerSecret = “–my secret–“; var xml = QueryYahoo(yql, consumerKey, consumerSecret); Console.Write(xml.InnerText); } private static XmlDocument QueryYahoo(string yql) { string url = “http://query.yahooapis.com/v1/public/yql?format=xml&diagnostics=false&q=” […]