{{>yql-mock-config}}
In this example, we make a simple YQL Query to retrieve data from the Yahoo! Weather YQL table.
NOTE: If the query appears unsuccessful, please try this example with mocked data.
The easiest way to build a YQL query is by visiting the YQL Console. In this example we will be using the weather.forecast
table. The YQL
statement that we are using looks like this:
You can preview this query in the YQL Console to get a sense of the data it returns.
Now we need to create our YUI instance and tell it to load the yql
and node
modules.
We now have a YUI instance with the yql
module (and its dependencies) attached, so we can proceed to make a query.