forked from spullara/yql-tables
/
etsy.users.xml
74 lines (68 loc) · 2.77 KB
/
etsy.users.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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 Users API</description>
<sampleQuery>select * from etsy.users 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/users/{user_id}/favorites/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="favorite_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" />
</inputs>
</select>
<select itemPath="json.results" produces="JSON">
<urls>
<url env="all">http://beta-api.etsy.com/v1/users/{user_id}/favorites/shops</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="favorite_shops" 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/users/{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/users/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="search_name" 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>
</bindings>
</table>