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
Showing
1 changed file
with
110 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,110 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | ||
<meta> | ||
<author>Rasmus Lerdorf</author> | ||
<documentationURL>http://developer.etsy.com/docs</documentationURL> | ||
<description>Etsy.com Shops API</description> | ||
<sampleQuery>select * from etsy.shops where user_id='testuser' and api_key=123456789</sampleQuery> | ||
</meta> | ||
<bindings> | ||
|
||
<select itemPath="json.results" produces="JSON"> | ||
<urls> | ||
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}/favorers</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="offset" default="0" /> | ||
<pagesize id="limit" max="50" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="user_id" type="xs:string" paramType="path" required="true" /> | ||
<key id="favorers" type="xs:boolean" paramType="header" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
<key id="detail_level" type="xs:string" paramType="query" /> | ||
</inputs> | ||
</select> | ||
|
||
<select itemPath="json.results" produces="JSON"> | ||
<urls> | ||
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}/listings</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="offset" default="0" /> | ||
<pagesize id="limit" max="50" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="user_id" type="xs:string" paramType="path" required="true" /> | ||
<key id="listings" type="xs:boolean" paramType="header" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
<key id="detail_level" type="xs:string" paramType="query" /> | ||
<key id="sort_order" type="xs:string" paramType="query" /> | ||
<key id="sort_on" type="xs:string" paramType="query" /> | ||
<key id="section_id" type="xs:number" paramType="query" /> | ||
</inputs> | ||
</select> | ||
|
||
<select itemPath="json.results" produces="JSON"> | ||
<urls> | ||
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}/listings/featured</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="offset" default="0" /> | ||
<pagesize id="limit" max="50" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="user_id" type="xs:string" paramType="path" required="true" /> | ||
<key id="featured" type="xs:boolean" paramType="header" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
<key id="detail_level" type="xs:string" paramType="query" /> | ||
</inputs> | ||
</select> | ||
|
||
<select itemPath="json.results" produces="JSON"> | ||
<urls> | ||
<url env="all">http://beta-api.etsy.com/v1/shops/featured</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="offset" default="0" /> | ||
<pagesize id="limit" max="50" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="featured" type="xs:boolean" paramType="header" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
<key id="detail_level" type="xs:string" paramType="query" /> | ||
</inputs> | ||
</select> | ||
|
||
<select itemPath="json.results" produces="JSON"> | ||
<urls> | ||
<url env="all">http://beta-api.etsy.com/v1/shops/{user_id}</url> | ||
</urls> | ||
<inputs> | ||
<key id="user_id" type="xs:string" paramType="path" required="true" /> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
<key id="detail_level" type="xs:string" paramType="query" /> | ||
</inputs> | ||
</select> | ||
|
||
<select itemPath="json.results" produces="JSON"> | ||
<urls> | ||
<url env="all">http://beta-api.etsy.com/v1/shops/keywords/{search_name}</url> | ||
</urls> | ||
<paging model="offset"> | ||
<start id="offset" default="0" /> | ||
<pagesize id="limit" max="50" /> | ||
<total default="10" /> | ||
</paging> | ||
<inputs> | ||
<key id="api_key" type="xs:string" paramType="query" required="true" /> | ||
<key id="search_name" type="xs:string" paramType="path" required="true" /> | ||
<key id="detail_level" type="xs:string" paramType="query" /> | ||
<key id="sort_order" type="xs:string" paramType="query" /> | ||
</inputs> | ||
</select> | ||
|
||
</bindings> | ||
</table> |