forked from spullara/yql-tables
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Josh Gordineer
committed
Mar 10, 2009
1 parent
6e361cb
commit 2c063bd
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | ||
<meta> | ||
<author>Josh Gordineer</author> | ||
<description>Guardian Item API</description> | ||
<sampleQuery>select * from {table} where item_id='334767774'</sampleQuery> | ||
</meta> | ||
<bindings> | ||
<select itemPath="content" produces="XML"> | ||
<urls> | ||
<url>http://api.guardianapis.com/content/item/{item_id}</url> | ||
</urls> | ||
<inputs> | ||
<key id="item_id" type="xs:string" paramType="path" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
</inputs> | ||
</select> | ||
</bindings> | ||
</table> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | ||
<meta> | ||
<author>Josh Gordineer</author> | ||
<description>Guardian Content Search API</description> | ||
<sampleQuery>select * from {table} where q='environment'</sampleQuery> | ||
</meta> | ||
<bindings> | ||
<select itemPath="search.results.content" produces="XML"> | ||
<urls> | ||
<url>http://api.guardianapis.com/content/search</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="start-index" default="0" /> | ||
<pagesize id="count" max="500" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="q" type="xs:string" paramType="query" /> | ||
<key id="after" type="xs:string" paramType="query" /> | ||
<key id="before" type="xs:string" paramType="query" /> | ||
<key id="content-type" type="xs:string" paramType="query" /> | ||
<key id="filter" type="xs:string" paramType="query" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
</inputs> | ||
</select> | ||
</bindings> | ||
</table> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | ||
<meta> | ||
<author>Josh Gordineer</author> | ||
<description>Guardian Tags API</description> | ||
<sampleQuery>select * from {table} where q='environment'</sampleQuery> | ||
</meta> | ||
<bindings> | ||
<select itemPath="tags.tag" produces="XML"> | ||
<urls> | ||
<url>http://api.guardianapis.com/content/tags</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="start-index" default="0" /> | ||
<pagesize id="count" max="500" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="q" type="xs:string" paramType="query" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
</inputs> | ||
</select> | ||
</bindings> | ||
</table> |