Created
November 11, 2010 22:22
-
-
Save deepthawtz/673315 to your computer and use it in GitHub Desktop.
didn't really know YQL was this awesome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // example runs in node.js | |
| // npm install yui3 | |
| var sys = require("sys") | |
| , YUI = require("yui3").YUI | |
| ; | |
| YUI().use("gallery-yql", function(Y) { | |
| var q = "select * from github.user.info where (id = 'deepthawtz')" | |
| , o = new Y.yql(q) | |
| ; | |
| o.on("query", function(r) { | |
| sys.puts(sys.inspect(r)); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment