Created
March 5, 2012 11:14
-
-
Save thinkphp/1977900 to your computer and use it in GitHub Desktop.
yqlquery usage
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
| var username = 'yelf'; | |
| function callback(data) { | |
| document.getElementById('result').innerHTML = data.query.results.result; | |
| } | |
| var yql = 'use "http://thinkphp.ro/apps/lastfm.js/YQL-open-data-table/recentlastfm.xml" as lastfm;select * from lastfm where username="'+ username +'" and api_key="2993c6e15c91a2890c2f11fa95673067"'; | |
| new YQLQuery(yql,callback).fetch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment