I\'d like to make some simple calls to Yahoo Query Language (YQL). Has anyone implemented this in .NET?
Here is the query I\'d like to make from .NET:
se
There is a complete example (with downloadable .NET source code) here:
http://andy.edinborough.org/C-OAuth-Implementation/
This example implements OAuth to let you take advantage of the higher usage limit of 100,000 requests / day and 10,000 requests / hour.
To create an OAuth key, see So, you want to use some Yahoo! APIs.
The code won't work without a minor change: replace the query for pizza with "show tables".
Update:
YQL didn't work with without appending the following string to the query:
&env=http%3A%2F%2Fdatatables.org%2Falltables.env
The full query string is:
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20%28%22MSFT%22%29&diagnostics=true&env=http%3A%2F%2Fdatatables.org%2Falltables.env
To obtain a full query URL from a YQL query:
select * from yahoo.finance.quotes where symbol in ("MSFT")
&env=http%3A%2F%2Fdatatables.org%2Falltables.env
to the url within the two overloaded QueryYahoo
functions.