Skip to content

Commit

Permalink
more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
spier committed Oct 15, 2011
1 parent 8330c9f commit bee21c9
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions wefeelfine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,19 @@ YQL tables for the [API](http://www.wefeelfine.org/api.html) of [wefeelfine.org]

# Examples

* Select the latest 10 collected feelings
* Select the latest 20 collected feelings

SELECT * FROM wefeelfine.feelings
SELECT * FROM wefeelfine.feelings

* Select the more feelings (up to 1500 maximum)

SELECT * FROM wefeelfine.feelings WHERE count=50
SELECT * FROM wefeelfine.feelings WHERE count=50

* Select specific feelings

SELECT * FROM wefeelfine.feelings WHERE feeling="happy"
SELECT * FROM wefeelfine.feelings WHERE gender="femalie"
SELECT * FROM wefeelfine.feelings WHERE feeling="happy"
SELECT * FROM wefeelfine.feelings WHERE postdate="2010-12-24"

* Retrieve the full URL of an image



Use "https://raw.github.com/spier/yql-tables/wefeelfine/wefeelfine/wefeelfine.xml";
Use "https://raw.github.com/spier/yql-tables/wefeelfine/wefeelfine/wefeelfine.imageurl.xml";
SELECT * FROM wefeelfine WHERE postdate="2006-04-27" AND imageid="p9tzFPjjoxHmtOlujQ7HvQ" AND imagesize="asdf";


http://images.wefeelfine.org/data/images/2006/04-27/1yjdG6D4wMP-fKxgDSNm1Q_full.jpg


-- retrieve the URL for an image
USE "https://raw.github.com/spier/yql-tables/wefeelfine/wefeelfine/wefeelfine.feelings.xml";
USE "https://raw.github.com/spier/yql-tables/wefeelfine/wefeelfine/wefeelfine.imageurl.xml";
SELECT * FROM wefeelfine.imageurl WHERE postdate="2006-04-27" AND imageid="p9tzFPjjoxHmtOlujQ7HvQ";
SELECT * FROM wefeelfine.imageurl WHERE postdate="2006-04-27" AND imageid="p9tzFPjjoxHmtOlujQ7HvQ"

0 comments on commit bee21c9

Please sign in to comment.