Browse files

fixed conflict with bitly_tables.env

  • Loading branch information...
2 parents a2fe02b + 6d3ebc7 commit 3ceb3cc42392730cb46651d42c987a2711e79c04 @spier spier committed Apr 8, 2011
Showing with 6,868 additions and 788 deletions.
  1. +20 −0 Bungie/bungie.reach.getPlayerRenderedVideos.xml
  2. +46 −0 ap/README.md
  3. +20 −0 ap/ap.breakingnews.categories.xml
  4. +27 −0 ap/ap.breakingnews.content.xml
  5. +3 −0 ap/ap.env
  6. +35 −0 ap/ap.search.xml
  7. +64 −0 apple/apple.itunes.xml
  8. +1 −1 bitly/bit.ly.timeline.xml
  9. +0 −13 bitly/bitly_tables.env
  10. +49 −0 brazil/caelum/brazil.caelum.proximoscursos.xml
  11. +23 −0 brazil/caelum/brazil.caelum.proximoscursos_html.xml
  12. +21 −0 campfire/campfire.roomtopic.xml
  13. +81 −0 couprecoup/couprecoup.deals.xml
  14. +87 −0 data/data.cdn.xml
  15. +108 −0 data/data.headers.xml
  16. +1 −1 data/data.html.cssselect.xml
  17. +26 −0 data/folderscrape.html.xml
  18. +37 −0 digg/digg.search.search.xml
  19. +22 −0 edu/wsu/edu.wsu.schedules.classbysln.xml
  20. +25 −0 edu/wsu/edu.wsu.schedules.classes.xml
  21. +1 −0 firstnames/firstnames.env
  22. +23 −0 firstnames/firstnames.lookup.xml
  23. +28 −0 foursquare/foursquare.checkins.add.xml
  24. +21 −0 foursquare/foursquare.checkins.recent.xml
  25. +18 −0 foursquare/foursquare.multi.xml
  26. +17 −0 foursquare/foursquare.settings.all.xml
  27. +22 −0 foursquare/foursquare.settings.set.xml
  28. +18 −0 foursquare/foursquare.settings.settings.xml
  29. +23 −0 foursquare/foursquare.tips.add.xml
  30. +21 −0 foursquare/foursquare.tips.markdone.xml
  31. +21 −0 foursquare/foursquare.tips.marktodo.xml
  32. +22 −0 foursquare/foursquare.tips.search.xml
  33. +18 −0 foursquare/foursquare.tips.tips.xml
  34. +21 −0 foursquare/foursquare.tips.unmark.xml
  35. +21 −0 foursquare/foursquare.users.approve.xml
  36. +18 −0 foursquare/foursquare.users.badges.xml
  37. +22 −0 foursquare/foursquare.users.checkins.xml
  38. +21 −0 foursquare/foursquare.users.deny.xml
  39. +18 −0 foursquare/foursquare.users.friends.xml
  40. +21 −0 foursquare/foursquare.users.request.xml
  41. +17 −0 foursquare/foursquare.users.requests.xml
  42. +23 −0 foursquare/foursquare.users.search.xml
  43. +22 −0 foursquare/foursquare.users.setpings.xml
  44. +20 −0 foursquare/foursquare.users.tips.xml
  45. +20 −0 foursquare/foursquare.users.todos.xml
  46. +21 −0 foursquare/foursquare.users.unfriend.xml
  47. +18 −0 foursquare/foursquare.users.users.xml
  48. +18 −0 foursquare/foursquare.users.venuehistory.xml
  49. +29 −0 foursquare/foursquare.venues.add.xml
  50. +17 −0 foursquare/foursquare.venues.categories.xml
  51. +22 −0 foursquare/foursquare.venues.flag.xml
  52. +18 −0 foursquare/foursquare.venues.herenow.xml
  53. +22 −0 foursquare/foursquare.venues.marktodo.xml
  54. +30 −0 foursquare/foursquare.venues.proposeedit.xml
  55. +23 −0 foursquare/foursquare.venues.search.xml
  56. +19 −0 foursquare/foursquare.venues.tips.xml
  57. +18 −0 foursquare/foursquare.venues.venues.xml
  58. +0 −50 geo/geo.placefinder.xml
  59. +0 −144 geo/geo.placemaker.xml
  60. +4 −0 github/README
  61. +45 −0 github/github.user.commits.xml
  62. +18 −0 github/github.user.watched.xml
  63. +191 −0 google/google.latitude.currentlocation.xml
  64. +2 −0 google/google.news.xml
  65. +4 −4 google/google.search.xml
  66. +41 −0 google/google.url.shortener.xml
  67. +0 −3 guardian/env.txt
  68. +26 −17 guardian/guardian.content.item.xml
  69. +31 −25 guardian/guardian.content.search.xml
  70. +26 −0 guardian/guardian.content.sections.xml
  71. +25 −21 guardian/guardian.content.tags.xml
  72. +0 −147 imdb/imdb.celeb.birthdays.xml
  73. +0 −99 imdb/imdb.compare.cast.xml
  74. +0 −54 imdb/imdb.movie.cast.xml
  75. +0 −113 imdb/imdb.movie.name.xml
  76. +7 −5 iplocation/ip.location.xml
  77. +321 −0 javascript/json2.js
  78. +2 −2 lastfm/lastfm.user.getinfo.xml
  79. +6 −4 lastfm/lastfm.user.getrecenttracks.xml
  80. +0 −58 linkedin/linkedin.peoplesearch.xml
  81. +20 −0 longurl/longurl.services.xml
  82. +1 −1 mendeley/mendeley.search.xml
  83. +20 −0 mixi/mixi.groups.xml
  84. +24 −0 mixi/mixi.people.xml
  85. +21 −0 mixi/mixi.peoplelookup.xml
  86. +24 −0 mixi/mixi.updates.xml
  87. +46 −0 mixi/mixi.voice.favorites.xml
  88. +48 −0 mixi/mixi.voice.replies.xml
  89. +23 −0 mixi/mixi.voice.statuses.friendstimeline.xml
  90. +23 −0 mixi/mixi.voice.statuses.usertimeline.xml
  91. +47 −0 mixi/mixi.voice.statuses.xml
  92. +26 −20 newegg/newegg.search.xml
  93. +28 −0 pivotal/pivotal.xml
  94. +21 −0 powerhousemuseum/phm.collections.xml
  95. +24 −0 powerhousemuseum/phm.collectionsitems.xml
  96. +38 −0 powerhousemuseum/phm.item.xml
  97. +38 −0 powerhousemuseum/phm.multimedia.xml
  98. +38 −0 powerhousemuseum/phm.subject.xml
  99. +38 −0 powerhousemuseum/phm.theme.xml
  100. +52 −0 seafoodwatch/seafoodwatch.region.xml
  101. +57 −0 seafoodwatch/seafoodwatch.tip.xml
  102. +39 −0 shelfari/shelfari.user.friends.xml
  103. +1 −1 socialmention/socialmention.search.xml
  104. +29 −0 spotify/spotify.search.album.xml
  105. +29 −0 spotify/spotify.search.artist.xml
  106. +29 −0 spotify/spotify.search.track.xml
  107. +26 −0 steam/steam.community.groups.xml
  108. +22 −0 steam/steam.community.leaderboards.game.xml
  109. +18 −0 steam/steam.community.leaderboards.list.xml
  110. +28 −0 steam/steam.community.player.gamestats.feed.xml
  111. +28 −0 steam/steam.community.player.gamestats.xml
  112. +26 −0 steam/steam.community.player.profile.xml
  113. +21 −0 steam/steam.news.xml
  114. +21 −0 steam/steam.user.xml
  115. +19 −0 steam/steam.userstats.xml
  116. +19 −0 tinysong/tinysong.search.xml
  117. +2 −2 weather/weather.woeid.xml
  118. +142 −0 worldbank/README.md
  119. +48 −0 worldbank/worldbank.countries.xml
  120. +68 −0 worldbank/worldbank.data.xml
  121. +7 −0 worldbank/worldbank.env
  122. +23 −0 worldbank/worldbank.incomelevels.xml
  123. +78 −0 worldbank/worldbank.indicators.xml
  124. +23 −0 worldbank/worldbank.lendingtypes.xml
  125. +25 −0 worldbank/worldbank.sources.xml
  126. +24 −0 worldbank/worldbank.topics.xml
  127. +35 −0 wufoo/wufoo.comments.xml
  128. +64 −0 wufoo/wufoo.entries.xml
  129. +29 −0 wufoo/wufoo.fields.xml
  130. +40 −0 wufoo/wufoo.forms.xml
  131. +32 −0 wufoo/wufoo.login.xml
  132. +19 −0 wunderground/wunderground.alerts.xml
  133. +19 −0 wunderground/wunderground.currentobservation.xml
  134. +19 −0 wunderground/wunderground.forecast.xml
  135. +19 −0 wunderground/wunderground.geolookup.xml
  136. +24 −0 yahoo/finance/finance.scrape.trend.xml
  137. +1 −1 yahoo/finance/yahoo.finance.historicaldata.xml
  138. +6 −2 yahoo/finance/yahoo.finance.options.xml
  139. +37 −0 yahoo/finance/yahoo.finance.xchange.xml
  140. +51 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.cancelanswer.xml
  141. +51 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.cancelanswerpreview.xml
  142. +51 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.cancelquestion.xml
  143. +51 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.cancelquestionpreview.xml
  144. +24 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.detailsearch.xml
  145. +24 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.getnewquestionlist.xml
  146. +54 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.postanswer.xml
  147. +54 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.postanswerpreview.xml
  148. +55 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.postquestion.xml
  149. +55 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.postquestionpreview.xml
  150. +49 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.postquesupplement.xml
  151. +49 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.postquesupplementpreview.xml
  152. +51 −0 yahoojp/chiebukuro/yahoojp.chiebukuro.selectbestanswer.xml
  153. +18 −0 yahoojp/map/yahoojp.map.openlocalplatform.altitude.xml
  154. +22 −0 yahoojp/map/yahoojp.map.openlocalplatform.getgid.xml
  155. +30 −0 yahoojp/map/yahoojp.map.openlocalplatform.localsearch.xml
  156. +116 −0 ygroups/ygroups.HGS.xml
  157. +118 −0 ygroups/ygroups.HGSP.xml
  158. +574 −0 ygroups/ygroups.HGSS.xml
  159. +271 −0 ygroups/ygroups.HMSE.xml
  160. +269 −0 ygroups/ygroups.HMSSI.xml
  161. +275 −0 ygroups/ygroups.HMSSU.xml
  162. +259 −0 ygroups/ygroups.HMST.xml
  163. +65 −0 ygroups/ygroups.HYEMA.xml
  164. +46 −0 ygroups/ygroups.HYFM.xml
  165. +59 −0 ygroups/ygroups.HYSIMA.xml
  166. +66 −0 ygroups/ygroups.HYSUMA.xml
  167. +66 −0 ygroups/ygroups.HYTMA.xml
  168. +2 −0 youtube/youtube.user.xml
View
20 Bungie/bungie.reach.getPlayerRenderedVideos.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Bungie, LLC (table definition by Tim Acheson: www.timacheson.com)</author>
+ <documentationURL>http://www.haloreachapi.net/wiki/GetPlayerRenderedVideos</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE gamertag="cbjoe" AND iPage=0</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>http://www.bungie.net/api/reach/reachapijson.svc/file/videos/{identifier}/{gamertag}/{iPage}</url>
+ </urls>
+ <inputs>
+ <key id="identifier" type="xs:string" private="true" paramType="path" default="" />
+ <key id="gamertag" type="xs:string" paramType="path" />
+ <key id="iPage" type="xs:string" paramType="path" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
46 ap/README.md
@@ -0,0 +1,46 @@
+# YQL Datatables for the API of the Associated Press
+
+The API of the Associated Press requires you to register for an API key. Register for a key at [http://developer.ap.org/](http://developer.ap.org/).
+There are different Levels of Service, if you you just want to test out the API then I recommend applying for "Sandbox" level.
+
+*References:*
+
+* [Associated Press](http://ap.org/)
+* [AP Developer and API (Application Programming Interface)](http://developer.ap.org/)
+* [YQL Documentation](https://developer.yahoo.com/yql/guide/)
+
+# Example YQL queries
+
+You can try out the following queries in the YQL Console, once your have an API key. Load the YQL console with these AP datatables by using the following link: [http://yhoo.it/f3tkrV](http://yhoo.it/f3tkrV)
+
+## ap.breakingnews.categories
+
+* get all breaking news categories
+
+ SET apiKey='YOUR-KEY-HERE' ON ap;
+ SELECT * FROM ap.breakingnews.categories;
+
+* get all breaking news categories, just returning title and link URL
+
+ SET apiKey='YOUR-KEY-HERE' ON ap;
+ SELECT title,link.href FROM ap.breakingnews.categories;
+
+## ap.breakingnews.content
+
+* get 2 articles from category ID 31990 with full content
+
+ SET apiKey='YOUR-KEY-HERE' ON ap;
+ SELECT * FROM ap.breakingnews.content WHERE categoryID=31990 AND count=2 AND contentOption=2;
+
+* get id,title, and author from the last 5 articles from category ID 31990 (removing duplicate articles by using YQLs unique() functions)
+
+ SET apiKey='YOUR-KEY-HERE' ON ap;
+ SELECT id,title,author FROM ap.breakingnews.content WHERE categoryID=31990 AND count=5 AND contentOption=2 | unique(field="id")
+
+## ap.search
+
+* search for articles contining "oil spill"
+
+ SET apiKey='YOUR-KEY-HERE' ON ap;
+ SELECT title,link.href FROM ap.search WHERE searchTerms="oil spill";
+
View
20 ap/ap.breakingnews.categories.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>Associated Press Categories. Get API key from http://developer.ap.org/.</description>
+ <documentationURL>http://developer.ap.org/docs</documentationURL>
+ <sampleQuery>SELECT * FROM {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <!-- returns all AP categories -->
+ <select itemPath="feed.entry" produces="XML">
+ <urls>
+ <url env="all">http://developerapi.ap.org/v2/categories.svc/</url>
+ </urls>
+ <inputs>
+ <key id="apiKey" type="xs:string" paramType="query" required="true" private="true" />
+ </inputs>
+ </select>
+ </bindings>
+ </table>
View
27 ap/ap.breakingnews.content.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>Associated Press Categories. Get API key from http://developer.ap.org/.</description>
+ <documentationURL>http://developer.ap.org/docs</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE categoryID=31998</sampleQuery>
+ </meta>
+ <bindings>
+ <!-- returns the latest articles for the given categoryID -->
+ <select itemPath="feed.entry" produces="XML">
+ <urls>
+ <url env="all">http://developerapi.ap.org/v2/categories.svc/{categoryID}/</url>
+ </urls>
+ <inputs>
+ <key id="apiKey" type="xs:string" paramType="query" required="true" private="true" />
+
+ <key id="categoryID" type="xs:string" paramType="path" required="true" />
+ <key id="contentOption" type="xs:string" paramType="query" default="0" />
+ <key id="count" type="xs:string" paramType="query" default="25" />
+ <!-- the following keys from the AP API are not tested: mediaOption and siteid -->
+ <key id="mediaOption" type="xs:string" paramType="query" default="1" />
+ <key id="siteid" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+ </table>
View
3 ap/ap.env
@@ -0,0 +1,3 @@
+USE "https://github.com/spier/yql-tables/raw/ap/ap/ap.breakingnews.categories.xml";
+USE "https://github.com/spier/yql-tables/raw/ap/ap/ap.breakingnews.content.xml";
+USE "https://github.com/spier/yql-tables/raw/ap/ap/ap.search.xml";
View
35 ap/ap.search.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>Associated Press Categories. Get API key from http://developer.ap.org/.</description>
+ <documentationURL>http://developer.ap.org/docs</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE searchTerms="oil"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="feed.entry" produces="XML">
+ <urls>
+ <url env="all">http://developerapi.ap.org/v2/search.svc/{role}/</url>
+ </urls>
+ <inputs>
+ <key id="apiKey" type="xs:string" paramType="query" required="true" private="true" />
+
+ <!-- Search request type. Possible values are: 'request' or 'similar' -->
+ <key id="role" type="xs:string" paramType="path" default="request" />
+ <!-- Contains the search keyword (when the role is request) or the entry ID (when the role is similar) -->
+ <key id="searchTerms" type="xs:string" paramType="query" required="true" />
+
+ <key id="count" type="xs:string" paramType="query" />
+
+ <!-- the following options are not tested -->
+ <key id="mediaOption" type="xs:string" paramType="query" default="1" />
+ <key id="location" type="xs:string" paramType="query" />
+ <key id="latitude" type="xs:string" paramType="query" />
+ <key id="longitude" type="xs:string" paramType="query" />
+ <key id="radius" type="xs:string" paramType="query" />
+ <key id="sortByLocation" type="xs:string" paramType="query" />
+ <key id="siteid" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+ </table>
View
64 apple/apple.itunes.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Micah Laaker ( micah@laaker.com | @mlaaker )</author>
+ <description>iTunes Store Web Service Search API</description>
+ <documentationURL>http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html</documentationURL>
+ <sampleQuery>select * from {table} where term='x' and media='all' and entity='allTrack' and attribute='allArtistTerm' and limit='100' and sort='recent';</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/{method}</url>
+ </urls>
+ <inputs>
+ <key id="method" type="xs:string" paramType="path" default="wsSearch" />
+ <key id="term" type="xs:string" paramType="query" />
+ <key id="country" type="xs:string" paramType="query" default="US" />
+ <key id="lang" type="xs:string" paramType="query" default="en_us" />
+ <key id="media" type="xs:string" paramType="query" default="all" />
+ <key id="entity" type="xs:string" paramType="query"/>
+ <key id="attribute" type="xs:string" paramType="query"/>
+ <key id="callback" type="xs:string" paramType="query"/>
+ <key id="limit" type="xs:string" paramType="query" default="25" />
+ <key id="version" type="xs:string" paramType="query" default="2" />
+ <key id="explicit" type="xs:string" paramType="query" default="Yes" />
+ <key id="id" type="xs:string" paramType="query" />
+ <key id="upc" type="xs:string" paramType="query" />
+ <key id="amgArtistId" type="xs:string" paramType="query" />
+ <key id="sort" type="xs:string" paramType="query" />
+ <key id="partnerId" type="xs:string" paramType="variable" default="30" />
+ <key id="siteID" type="xs:string" paramType="variable" default="i1Py/0jev0U" />
+ </inputs>
+ <execute>
+ <![CDATA[
+
+ // Fetch the response
+ y.include('http://www.datatables.org/javascript/json2.js');
+ var rsp = JSON.parse(request.get().response);
+
+ // loop over each result
+ for each(var result in rsp.results) {
+ if(result.artistViewUrl) {
+ result.artistViewUrl = y.rest(result.artistViewUrl).query('partnerId', partnerId).query('siteID', siteID).url.toString();
+ }
+ if(result.collectionViewUrl) {
+ result.collectionViewUrl = y.rest(result.collectionViewUrl).query('partnerId', partnerId).query('siteID', siteID).url.toString();
+ }
+ if(result.trackViewUrl) {
+ result.trackViewUrl = y.rest(result.trackViewUrl).query('partnerId', partnerId).query('siteID', siteID).url.toString();
+ }
+ if(result.previewUrl) {
+ result.previewUrl = y.rest(result.previewUrl).query('partnerId', partnerId).query('siteID', siteID).url.toString();
+ }
+ }
+
+ response.object = rsp;
+
+ ]]>
+ </execute>
+
+ </select>
+ </bindings>
+</table>
+
View
2 bitly/bit.ly.timeline.xml
@@ -2,7 +2,7 @@
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
- <description>NOTE: No official API call!!! Wrapper for the json data of the public user timeline.</description>
+ <description>NOTE: No official API call!!! This just gives you a simple wrapper for the public timeline of any bit.ly user, so that you can easily access this data as JSON.</description>
<documentationURL></documentationURL>
<sampleQuery>SELECT * FROM {table} WHERE login='yourlogingoeshere'</sampleQuery>
</meta>
View
13 bitly/bitly_tables.env
@@ -1,13 +0,0 @@
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.authenticate.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.clicks_by_day.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.expand.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.referrers.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.bitly_pro_domain.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.clicks_by_minute.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.info.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.shorten.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.clicks.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.countries.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.lookup.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.validate.xml';
-use 'https://github.com/spier/yql-tables/raw/bitly/bitly/bit.ly.timeline.xml';
View
49 brazil/caelum/brazil.caelum.proximoscursos.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Adriano Almeida</author>
+ <description>Pesquisa na lista de cursos da Caelum</description>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+
+ <bindings>
+
+ <select itemPath="" produces="XML">
+ <execute><![CDATA[
+ var url = 'http://www.caelum.com.br';
+ var xpath = "//div[@id='calendario']/table/tbody/tr";
+
+ query = y.query('select * from html where url="' + url + '" and xpath="' + xpath + '"');
+ results = query.results;
+ responseXML = <cursos></cursos>;
+ for each (var tr in results.tr) {
+ if(tr.elements('th').length() == 0) {
+ curso = <curso></curso>;
+ for each(var td in tr.td) {
+ if(td.@['class'] == 'curso') {
+ curso.curso += <nome>{td.a.*}</nome>;
+ }
+ if(td.@['class'] == 'data') {
+ curso.curso += <data>{td.p.*}</data>;
+ }
+ if(td.@['class'] == 'periodo') {
+ curso.curso += <periodo>{td.@title}</periodo>;
+ }
+ if(td.@['class'] == 'cidade') {
+ curso.curso += <cidade>{td.p.*}</cidade>;
+ }
+ if(td.@['class'] == 'comentario') {
+ curso.curso += <comentario>{td.p.*}</comentario>;
+ }
+
+ }
+ responseXML.cursos += curso;
+ }
+ }
+
+ response.object = responseXML;
+ ]]></execute>
+
+ </select>
+ </bindings>
+</table>
View
23 brazil/caelum/brazil.caelum.proximoscursos_html.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Adriano Almeida</author>
+ <description>Pesquisa na lista de cursos da Caelum</description>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+
+ <bindings>
+
+ <select itemPath="" produces="XML">
+ <execute><![CDATA[
+ var url = 'http://www.caelum.com.br';
+ var xpath = "//div[@id='calendario']/table/tbody/tr";
+
+ query = y.query('select * from html where url="' + url + '" and xpath="' + xpath + '"');
+ response.object = query.results;
+
+ ]]></execute>
+
+ </select>
+ </bindings>
+</table>
View
21 campfire/campfire.roomtopic.xml
@@ -0,0 +1,21 @@
+<table xmlns='http://query.yahooapis.com/v1/schema/table.xsd'>
+ <bindings>
+ <select produces='XML'>
+ <urls>
+ <url>https://{company}.campfirenow.com/room/{roomid}.xml</url>
+ </urls>
+ <inputs>
+ <key id='company' paramType='path' required='true'/>
+ <key id='roomid' paramType='path' required='true'/>
+ <key id='token' paramType='variable' required='true'/>
+ </inputs>
+ <execute><![CDATA[
+ var out = request.header("Authorization", y.crypto.encodeBase64(token + ":x")).get().response;
+ var newout = <root/>;
+ newout.item.text.text = out.topic.text();
+ newout.item.type = 2;
+ response.object = newout;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
81 couprecoup/couprecoup.deals.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Jeremy Hubert</author>
+ <description>Returns the CoupRecoup listings</description>
+ <sampleQuery>select * from {table} where discount = '55' and query = 'salon'</sampleQuery>
+ </meta>
+ <bindings>
+ <select produces="XML" itemPath="deals.deal">
+ <urls><url></url></urls>
+ <inputs>
+ <key id="discount" type="xs:string" paramType="variable" />
+ <key id="query" type="xs:string" paramType="variable" />
+ </inputs>
+ <execute><![CDATA[
+
+ var url = 'http://couprecoup.com',
+ listings = <></>,
+ deals = <></>,
+ data,
+ qs;
+
+ function parseListing(listing) {
+ var data = <deal />,
+ ltd = listing.td,
+ td1 = ltd[1].span,
+ price_title = td1[0],
+ provider_date = td1[1],
+ provider = provider_date.a[0],
+ dates = provider_date.span[0].text().toString().replace(/\n|\s+$/gm,' ').split('|');
+
+ data.@["photo"] = ltd[0].img.@src.toString();
+ data.@["url"] = url + ltd[4].a.@href.toString();
+ data.@["your_price"] = ltd[3].span.toString();
+ data.@["original_price"] = ltd[2].span.toString();
+ data.@["savings"] = price_title.text().toString().replace(/\n|\s+$/gm,'');
+ data.@["title"] = price_title.a[0].text().toString().replace(/\n|\s+$/gm,' ');
+
+ data.@["provider_name"] = provider.text().toString();
+ data.@["provider_url"] = provider.@href.toString();
+
+ data.@["expires_on"] = dates[1].replace('Expires ','').replace(/^\s+|\s+$/g,'');
+ data.@["created_on"] = dates[2].replace('Created ','').replace(/^\s+|\s+$/g,'');
+
+ return data;
+ }
+
+ function buildQueryString() {
+ var qs = '';
+
+ if (discount || query) {
+
+ qs = "/?src=api";
+
+ if (query) {
+ qs += '&q=' + escape(query);
+ }
+ if (discount) {
+ qs += '&d=' + escape(discount);
+ }
+
+ }
+
+ return qs
+ }
+
+ url += buildQueryString();
+
+ data = y.query('select * from html where url = @url and xpath = "//tr[@class=\'listing\']"', { url:url });
+
+ listings = data.results.tr;
+
+ for each(var listing in listings) {
+ deals += parseListing(listing);
+ }
+
+ response.object = <deals>{deals}</deals>;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
87 data/data.cdn.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Marcel Duran</author>
+ <description>Retrieves the list of CDNs or boolean values for a given list of hostnames or urls.</description>
+ <sampleQuery>select * from {table}</sampleQuery>
+ <sampleQuery>select * from {table} where hostname in ("l.yimg.com","s3.amazonws.com")</sampleQuery>
+ <sampleQuery>select * from {table} where url in ("http://l.yimg.com/foo.png","http://s3.amazonws.com/bar.png")</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <inputs>
+ <key id="hostname" type="xs:string" paramType="variable" required="false"/>
+ <key id="url" type="xs:string" paramType="variable" required="false"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var hostname, cdn, i, len,
+
+ cdns = [
+ /*********** BEGIN OF CDN LIST ***********/
+ /******* change from this point on *******/
+ {
+ name: 'Yahoo! yimg',
+ pattern: '^[\\d\\w\\.]+.yimg.com'
+ },
+ {
+ name: 'Yahoo! APIs',
+ pattern: '^yui.yahooapis.com'
+ },
+ {
+ name: 'Akamai',
+ pattern: '^a248.e.akamai.net'
+ },
+ {
+ name: 'Yahoo! Korea image server',
+ pattern: '^img(?:.(?:shopping|news|srch))?.yahoo.co.kr'
+ },
+ {
+ name: 'Yahoo! Korea ads server',
+ pattern: '^(?:adz|pimg).kr.yahoo.com'
+ },
+ {
+ name: 'Yahoo! Koread image server',
+ pattern: '^kr.img.n2o.yahoo.com'
+ },
+ {
+ name: 'Amazon AWS',
+ pattern: '^s3.amazonaws.com'
+ }
+ /** don't forget to remove last comma **/
+ /*** don't change from this point on ***/
+ /*********** END OF CDN LIST ***********/
+ ];
+
+ // for hostname or url returns true or false if they are cdn or not
+ if (hostname || url) {
+ data = <result/>;
+ data.@['cdn'] = false;
+ if (url) {
+ hostname = /^(?:[A-Za-z]+:\/{2,3})?([^\/\?&]+)/.exec(url),
+ hostname = hostname && hostname[1] || '';
+ data.@['url'] = url;
+ }
+ data.@['hostname'] = hostname;
+ for (i = 0, len = cdns.length; i < len; i += 1) {
+ cdn = cdns[i];
+ if (RegExp(cdn.pattern).test(hostname)) {
+ data.@['cdn'] = true;
+ data.@['name'] = cdn.name;
+ break;
+ }
+ }
+ // otherwise retunrs a list of cdn patterns
+ } else {
+ data = <cdns/>;
+ for each (cdn in cdns) {
+ data.cdns += <result name={cdn.name} pattern={cdn.pattern} />
+ }
+ }
+
+ response.object = data;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
108 data/data.headers.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns:i="http://query.yahooapis.com/v1/schema/internalTable.xsd" xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Marcel Duran</author>
+ <description>Request (GET) a URL and retrieves its content (non-binary) and headers. User Agent string (ua) is optional.</description>
+ <sampleQuery>select * from {table} where url="http://www.yahoo.com/"</sampleQuery>
+ <sampleQuery>select * from {table} where url in ("http://www.yahoo.com/","http://www.google.com/") and ua="Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1)"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <inputs>
+ <key id="url" type="xs:string" paramType="variable" required="true"/>
+ <key id="ua" type="xs:string" paramType="variable" required="false"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var resp, header, tag, redirect, location, redir, count, decodeError,
+ data = <resources/>,
+ headers = <headers/>,
+ reTagCase = /(^|\-)(\w)/g,
+
+ tagCase = function (a, b, c) {
+ return b + c.toUpperCase();
+ },
+
+ request = function (compress, charset) {
+ y.log('request with' + (compress ? '' : 'out') + ' compression');
+ var req = y.rest(url);
+
+ // set user agent
+ if (ua) {
+ req.header('User-Agent', ua);
+ }
+
+ // compression
+ if (compress) {
+ req.header('Accept-Encoding', 'gzip,deflate');
+ req.decompress(true);
+ }
+
+ if (charset) {
+ req.forceCharset(charset);
+ }
+
+ // fetch url
+ return req.get();
+ };
+
+ resp = request(true);
+ y.log('response length: ' + (resp.response && resp.response.length));
+
+ // check redirect
+ redirect = y.diagnostics.redirect;
+ count = redirect && redirect.length();
+ if (count) {
+ count = (count % 2) ? count : count / 2;
+ for (i = 0; i < count; i += 1) {
+ redir = redirect[i];
+ y.log('redirect: ' + redir.@status + ' = ' + redir.toString());
+ location = redir.toString();
+ if (location) {
+ data.resources +=
+ <redirect>
+ <url>{url}</url>
+ <status>{redir.@status}</status>
+ <headers>
+ <Location>{location}</Location>
+ </headers>
+ </redirect>;
+ url = location;
+ }
+ }
+ }
+
+ // get headers
+ for (header in resp.headers) {
+ tag = header.replace(reTagCase, tagCase);
+ headers.headers += <{tag}>{resp.headers[header]}</{tag}>;
+ }
+
+ // set result
+ data.resources += <url>{url}</url>;
+ data.resources += <status>{resp.status}</status>;
+ data.resources += headers;
+
+ // get uncompressed response for non-binary
+ if ((header = resp.headers) && (header = header['content-type']) &&
+ header.indexOf('image') && header.indexOf('x-shockwave-flash') < 0) {
+
+ decodeError = y.diagnostics.url.(@['error'] == "Unable to parse data using default charset utf-8").(url == url);
+ y.log('decode error: ' + decodeError);
+
+ // try again with different charset if error occurs
+ if (!resp.response && decodeError) {
+ resp = request(false, 'ISO-8859-1');
+ y.log('response iso length: ' + (resp.response && resp.response.length));
+ }
+ }
+
+ data.resources += <content>{resp.response}</content>;
+
+ response.maxAge = 300;
+ response.object = data;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
2 data/data.html.cssselect.xml
@@ -14,7 +14,7 @@
</inputs>
<execute><![CDATA[
//include css to xpath convert function
- y.include("http://github.com/darkhelmet/yql-tables/raw/master/js/css2xpath.js");
+ y.include("http://css2xpath.googlecode.com/svn/trunk/build/css2xpath.min.js");
var query = null;
if (css) {
var xpath = css2xpath(css);
View
26 data/folderscrape.html.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <sampleQuery>select * from {table} where folder="http://www.astro.caltech.edu/~aam/science/xml/"</sampleQuery>
+ <author>Christian Heilmann</author>
+ <description>Gets urls from an Apache folder for scraping</description>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <inputs>
+ <key id='folder' type='xs:string' paramType='variable' required="true" />
+ </inputs>
+ <execute><![CDATA[
+ var res = y.query('select * from html where url="'+folder+'" and xpath="//tr/td[@valign=\'top\']/following-sibling::td/a"').results..a;
+ var out = <files/>;
+ for each(f in res){
+ if(!f.@href.toString().match(/\//)){
+ content = folder+f.@href;
+ out.files += <file>{content}</file>;
+ }
+ }
+ response.object = <folder>{out}</folder>;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
37 digg/digg.search.search.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>Digg API V2 search.search</description>
+ <documentationURL>http://developers.digg.com/version2/search-search</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE domain="nba.com"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json.stories" produces="JSON">
+ <urls>
+ <url env="all">http://services.digg.com/2.0/search.search</url>
+ </urls>
+ <paging model="page">
+ <start id="offset" default="1" />
+ <pagesize id="count" max="200" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <!-- domain string A domain. (e.g. digg.com) (optional) -->
+ <key id="domain" type="xs:string" paramType="query" />
+ <!-- sort string Sort result. Possible values promote_date-desc, promote_date-asc, submit_date-desc, submit_date-asc, digg_count-desc, digg_count-asc, date-desc, date-asc. Not all sort options are available on each endpoint. (optional) -->
+ <key id="sort" type="xs:string" paramType="query" />
+ <!-- topic string Topic's short_name name. i.e. apple (see topic.getAll) (optional) -->
+ <key id="topic" type="xs:string" paramType="query" />
+ <!-- media string Media name. Possible values are news, videos, and images (optional) -->
+ <key id="media" type="xs:string" paramType="query" />
+ <!-- query string Search query (optional) -->
+ <key id="query" type="xs:string" paramType="query" />
+ <!-- max_date timestamp Max date represented as a unix timestamp (optional) -->
+ <key id="max_date" type="xs:string" paramType="query" />
+ <!-- min_date timestamp Min date represented as a unix timestamp (optional) -->
+ <key id="min_date" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 edu/wsu/edu.wsu.schedules.classbysln.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Washington State University</author>
+ <author>Jeff Craig &lt;jacraig@wsu.edu&gt;</author>
+ <documentationURL>http://schedules.wsu.edu/API/</documentationURL>
+ <description>Get current schedule data for a single section selected by Schedule Line Number from Washington State University</description>
+ <sampleQuery>select * from {table} where year=2011 and term=1 and sln=0477</sampleQuery>
+ </meta>
+ <bindings>
+ <select produces="JSON">
+ <urls>
+ <url>http://schedules.wsu.edu/API/ClassBySLN/{year}{term}/{sln}</url>
+ </urls>
+ <inputs>
+ <key id="year" type="xs:integer" paramType="path" required="true" />
+ <key id="term" type="xs:integer" paramType="path" required="true" />
+ <key id="sln" type="xs:integer" paramType="path" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
25 edu/wsu/edu.wsu.schedules.classes.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Washington State University</author>
+ <author>Jeff Craig &lt;jacraig@wsu.edu&gt;</author>
+ <documentationURL>http://schedules.wsu.edu/API/</documentationURL>
+ <description>Get current Class Schedule data from Washington State University</description>
+ <sampleQuery>select * from {table} where campus="Pullman" and year=2011 and term=1 and prefix="Biol"</sampleQuery>
+ <sampleQuery>select * from {table} where campus="Pullman" and year=2011 and term=1 and prefix="Biol" and course=106</sampleQuery>
+ </meta>
+ <bindings>
+ <select produces="JSON">
+ <urls>
+ <url>http://schedules.wsu.edu/API/Classes/{campus}/{year}{term}/{prefix}/{course}</url>
+ </urls>
+ <inputs>
+ <key id="campus" type="xs:string" paramType="path" required="true" />
+ <key id="year" type="xs:integer" paramType="path" required="true" />
+ <key id="term" type="xs:integer" paramType="path" required="true" />
+ <key id="prefix" type="xs:string" paramType="path" required="true" />
+ <key id="course" type="xs:integer" paramType="path" required="false" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
1 firstnames/firstnames.env
@@ -0,0 +1 @@
+USE "https://github.com/spier/yql-tables/raw/firstnames/firstnames/firstnames.lookup.xml";
View
23 firstnames/firstnames.lookup.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>
+ Displays gender of a given name and a list of countries where persons with this name can be found. The list of countries is sorted by frequency starting with the country where the name is the most popular.
+
+ This YQL table uses an API from http://www.thomas-bayer.com, which in turn is based on a list from Jörg Michael (data from "nam_dict.txt" from www.heise.de/ct, soft-link 0717182), containing more than 40,000 forenames, its gender and the approximate frequency of each name in all European countries and in a lot of other countries like China, India, U.S.A. and Japan.
+ </description>
+ <documentationURL>http://www.thomas-bayer.com/restnames/</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE name="Sebastian"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="restnames" produces="XML">
+ <urls>
+ <url>http://www.thomas-bayer.com/restnames/name.groovy</url>
+ </urls>
+ <inputs>
+ <key id="name" type="xs:string" paramType="query" required="true"/>
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
28 foursquare/foursquare.checkins.add.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/checkins/add.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/checkins/add</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venueId" type="xs:string" paramType="query" />
+ <key id="venue" type="xs:string" paramType="query" />
+ <key id="shout" type="xs:string" paramType="query" />
+ <key id="broadcast" type="xs:string" paramType="query" />
+ <key id="ll" type="xs:string" paramType="query" />
+ <key id="llAcc" type="xs:string" paramType="query" />
+ <key id="alt" type="xs:string" paramType="query" />
+ <key id="altAcc" type="xs:string" paramType="query" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
21 foursquare/foursquare.checkins.recent.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/checkins/recent.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/checkins/recent</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="ll" type="xs:string" paramType="query" />
+ <key id="limit" type="xs:string" paramType="query" />
+ <key id="offset" type="xs:string" paramType="query" />
+ <key id="afterTimestamp" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
18 foursquare/foursquare.multi.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/multi/multi.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/multi</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="requests" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
17 foursquare/foursquare.settings.all.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/settings/all.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/settings/all</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 foursquare/foursquare.settings.set.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/settings/set.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/settings/[setting_id}/set</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="setting_id" type="xs:string" paramType="path" required="true" />
+ <key id="value" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
18 foursquare/foursquare.settings.settings.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/settings/settings.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/settings/{setting_id}</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="setting_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
23 foursquare/foursquare.tips.add.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/tips/add.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/tips/add</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venueId" type="xs:string" paramType="query" required="true" />
+ <key id="text" type="xs:string" paramType="query" required="true" />
+ <key id="url" type="xs:string" paramType="query" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
21 foursquare/foursquare.tips.markdone.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/tips/markdone.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/tips/{tip_id}/markdone</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="tip_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
21 foursquare/foursquare.tips.marktodo.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/tips/marktodo.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/tips/{tip_id}/marktodo</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="tip_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
22 foursquare/foursquare.tips.search.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/tips/search.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/tips/search</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="ll" type="xs:string" paramType="query" required="true" />
+ <key id="limit" type="xs:string" paramType="query" />
+ <key id="offset" type="xs:string" paramType="query" />
+ <key id="filter" type="xs:string" paramType="query" />
+ <key id="query" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
18 foursquare/foursquare.tips.tips.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/tips/tips.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/tips/{tip_id}</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="tip_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
21 foursquare/foursquare.tips.unmark.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/tips/unmark.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/tips/{tip_id}/unmark</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="tip_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
21 foursquare/foursquare.users.approve.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/approve.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/approve</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
18 foursquare/foursquare.users.badges.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/badges.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/badges</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 foursquare/foursquare.users.checkins.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/checkins.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/checkins</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ <key id="limit" type="xs:string" paramType="path" />
+ <key id="offset" type="xs:string" paramType="query" />
+ <key id="afterTimestamp" type="xs:string" paramType="query" />
+ <key id="beforeTimestamp" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
21 foursquare/foursquare.users.deny.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/deny.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/deny</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
18 foursquare/foursquare.users.friends.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/friends.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/friends</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
21 foursquare/foursquare.users.request.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/request.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/request</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
17 foursquare/foursquare.users.requests.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/requests.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/requests</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
23 foursquare/foursquare.users.search.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/search.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/search</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="phone" type="xs:string" paramType="query" />
+ <key id="email" type="xs:string" paramType="query" />
+ <key id="twitter" type="xs:string" paramType="query" />
+ <key id="twitterSource" type="xs:string" paramType="query" />
+ <key id="fbid" type="xs:string" paramType="query" />
+ <key id="name" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 foursquare/foursquare.users.setpings.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/setpings.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/setpings</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" required="true" />
+ <key id="value" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
20 foursquare/foursquare.users.tips.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/tips.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/tips</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ <key id="sort" type="xs:string" paramType="query" />
+ <key id="ll" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
20 foursquare/foursquare.users.todos.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/todos.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/todos</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ <key id="sort" type="xs:string" paramType="query" />
+ <key id="ll" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
21 foursquare/foursquare.users.unfriend.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/unfriend.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/unfriend</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
18 foursquare/foursquare.users.users.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/users.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
18 foursquare/foursquare.users.venuehistory.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/users/venuehistory.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/users/{user_id}/venuehistory</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="user_id" type="xs:string" paramType="path" default="self" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
29 foursquare/foursquare.venues.add.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/add.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/add</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="name" type="xs:string" paramType="query" required="true" />
+ <key id="address" type="xs:string" paramType="query" />
+ <key id="crossStreet" type="xs:string" paramType="query" />
+ <key id="city" type="xs:string" paramType="query" />
+ <key id="state" type="xs:string" paramType="query" />
+ <key id="zip" type="xs:string" paramType="query" />
+ <key id="phone" type="xs:string" paramType="query" />
+ <key id="ll" type="xs:string" paramType="query" />
+ <key id="primaryCategoryId" type="xs:string" paramType="query" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
17 foursquare/foursquare.venues.categories.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/categories.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/categories</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 foursquare/foursquare.venues.flag.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/flag.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/{venue_id}/flag</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venue_id" type="xs:string" paramType="path" required="true" />
+ <key id="problem" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
18 foursquare/foursquare.venues.herenow.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/herenow.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/{venue_id}/herenow</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venue_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 foursquare/foursquare.venues.marktodo.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/marktodo.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/{venue_id}/marktodo</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venue_id" type="xs:string" paramType="path" required="true" />
+ <key id="text" type="xs:string" paramType="query" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
30 foursquare/foursquare.venues.proposeedit.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/proposeedit.html</documentationURL>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/{venue_id}/proposeedit</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venue_id" type="xs:string" paramType="path" required="true" />
+ <key id="name" type="xs:string" paramType="query" />
+ <key id="address" type="xs:string" paramType="query" />
+ <key id="crossStreet" type="xs:string" paramType="query" />
+ <key id="city" type="xs:string" paramType="query" />
+ <key id="state" type="xs:string" paramType="query" />
+ <key id="zip" type="xs:string" paramType="query" />
+ <key id="phone" type="xs:string" paramType="query" />
+ <key id="ll" type="xs:string" paramType="query" />
+ <key id="primaryCategoryId" type="xs:string" paramType="query" />
+ </inputs>
+ <execute><![CDATA[
+ response.object = request.post().response;
+ ]]></execute>
+ </insert>
+ </bindings>
+</table>
View
23 foursquare/foursquare.venues.search.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/search.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/search</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="ll" type="xs:string" paramType="query" required="true" />
+ <key id="llAcc" type="xs:string" paramType="query" />
+ <key id="alt" type="xs:string" paramType="query" />
+ <key id="altAcc" type="xs:string" paramType="query" />
+ <key id="query" type="xs:string" paramType="query" />
+ <key id="limit" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
19 foursquare/foursquare.venues.tips.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/tips.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/{venue_id}/tips</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venue_id" type="xs:string" paramType="path" required="true" />
+ <key id="sort" type="xs:string" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
18 foursquare/foursquare.venues.venues.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Ryuichi Okumura</author>
+ <documentationURL>http://developer.foursquare.com/docs/venues/venues.html</documentationURL>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>https://api.foursquare.com/v2/venues/{venue_id}</url>
+ </urls>
+ <inputs>
+ <key id="oauth_token" type="xs:string" paramType="query" required="true" />
+ <key id="venue_id" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
50 geo/geo.placefinder.xml
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
- <meta>
- <author>Yahoo! Inc.</author>
- <description>GeoPlanet PlaceFinder table</description>
-<documentationURL>http://developer.yahoo.com/geo/placefinder/guide</documentationURL>
- <sampleQuery>select * from {table} where text="sfo"</sampleQuery>
- </meta>
- <bindings>
- <select itemPath="ResultSet.Result" produces="XML">
- <urls>
- <url env="all">http://where.yahooapis.com/geocode?locale={lang}_{focus}</url>
- </urls>
- <paging model="offset" matrix="false">
-
- <start id="start" default="0" />
- <pagesize id="count" max="100" />
- <total default="100" />
- </paging>
- <inputs>
- <key id="house" type="xs:string" paramType="query" />
- <key id="street" type="xs:string" paramType="query" />
- <key id="unittype" type="xs:string" paramType="query" />
- <key id="unit" type="xs:string" paramType="query" />
-
- <key id="xstreet" type="xs:string" paramType="query" />
- <key id="postal" type="xs:string" paramType="query" />
- <key id="level4" type="xs:string" paramType="query" />
- <key id="level3" type="xs:string" paramType="query" />
- <key id="level2" type="xs:string" paramType="query" />
- <key id="level1" type="xs:string" paramType="query" />
- <key id="level0" type="xs:string" paramType="query" />
- <key id="neighborhood" type="xs:string" paramType="query" />
- <key id="city" type="xs:string" paramType="query" />
-
- <key id="county" type="xs:string" paramType="query" />
- <key id="state" type="xs:string" paramType="query" />
- <key id="country" type="xs:string" paramType="query" />
- <key id="lang" type="xs:string" paramType="path" default="en" />
- <key id="focus" type="xs:string" paramType="path" default="US" />
- <key id="q" type="xs:string" paramType="query" default="" />
- <key id="offset" type="xs:integer" paramType="query" default="0" />
- <key id="flags" type="xs:string" paramType="query" default="QRGSTX" />
- <key id="gflags" type="xs:string" paramType="query" default="ACR" />
- <key id="appid" type="xs:string" const="true" paramType="query" default="YD-bs4vWJU_JXrmPwSfQ8yStcfWoDA5n51J" />
-
- </inputs>
- </select>
- </bindings>
-</table>
View
144 geo/geo.placemaker.xml
@@ -1,144 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
- <meta>
- <author>Balaji Narayanan</author>
- <author>Tom Hughes-Croucher</author>
- <description>Placemaker</description>
- <sampleQuery>select * from {table} where documentContent = "They followed him to deepest Africa and found him there, in Timbuktu" and documentType="text/plain" anmd appid = ""</sampleQuery>
- <documentationURL>http://developer.yahoo.com/geo/placemaker/</documentationURL>
- </meta>
- <bindings>
-
- <select itemPath="" produces="XML">
- <urls>
- <url>http://wherein.yahooapis.com/v1/document</url>
- </urls>
- <inputs>
- <key id="documentURL" type="xs:string" required="true" paramType="variable"/>
- <key id="documentType" type="xs:string" required="true" paramType="variable"/>
- <key id="appid" type="xs:string" required="true" paramType="variable"/>
- <key id="documentTitle" type="xs:string" paramType="variable"/>
- <key id="inputLanguage" type="xs:string" paramType="variable" />
- <key id="autoDisambiguate" type="xs:string" paramType="variable" />
- <key id="focusWoeId" type="xs:string" paramType="variable" />
- </inputs>
- <execute>
- <![CDATA[
-
- content = "documentURL=" + documentURL + "&documentType=" + documentType + "&appid=" + appid;
- if (documentTitle) { content += "&documentTitle=" + documentTitle; }
- if (inputLanguage) { content += "&inputLanguage=" + inputLanguage; }
- if (autoDisambiguate) { content += "&autoDisambiguate=" + autoDisambiguate; }
- if (focusWoeId) { content += "&focusWoeId=" + focusWoeId; }
-
- postResponse = request.accept("application/xml").contentType("application/x-www-form-urlencoded").post(content).response;
-
- if (postResponse != null) {
-
- default xml namespace = "http://wherein.yahooapis.com/v1/schema";
-
- matches = Array();
-
- for each (var place in postResponse.document.placeDetails.place) {
- if (matches[place.woeId]) {
- matches[place.woeId].place = place;
- } else {
- matches[place.woeId] = Array();
- matches[place.woeId].place = place;
- }
- }
- for each (var reference in postResponse.document.referenceList.reference) {
- if (matches[reference.woeIds]) {
- matches[reference.woeIds].reference = reference;
- } else {
- matches[reference.woeIds] = Array();
- matches[reference.woeIds].reference = reference;
- }
- }
- default xml namespace = "";
-
- var output = <matches></matches>;
-
- for each (var match in matches) {
- var matchXML = <match></match>;
- matchXML.node += match.place;
- matchXML.node += match.reference;
-
- output.node += matchXML;
- }
-
- response.object = output;
-
- }
-
- ]]>
- </execute>
- </select>
- <select itemPath="" p