forked from yql/yql-tables
/
pw.mashups.xml
42 lines (37 loc) · 1.68 KB
/
pw.mashups.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
<?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></description>
<documentationURL>http://api.programmableweb.com/apireference</documentationURL>
<sampleQuery>SELECT * FROM {table}</sampleQuery>
<sampleQuery>SELECT * FROM {table} WHERE maxdays=2</sampleQuery>
<sampleQuery>SELECT id,title,link FROM {table} WHERE q="guardian"</sampleQuery>
<sampleQuery>SELECT * FROM {table} WHERE apis="google-maps"</sampleQuery>
</meta>
<bindings>
<select itemPath="feed.entry" produces="XML">
<urls>
<url env="all">http://api.programmableweb.com/mashups</url>
</urls>
<paging model="page">
<start id="page" default="0" />
<pagesize id="pagesize" max="30" />
<total default="20" />
</paging>
<inputs>
<!-- fix calls to always respond with XML -->
<key id="alt" type="xs:string" paramType="query" default="xml" const="true"/>
<!-- fix the version to 1.0 -->
<key id="version" type="xs:string" paramType="query" default="1.0" const="true"/>
<!-- the apikey to use. username/password could be used for authentication as well but is not recommended as they would be sent in plain text -->
<key id="apikey" type="xs:string" paramType="query" required="true"/>
<key id="q" as="query" type="xs:string" paramType="query"/>
<key id="sort" type="xs:string" paramType="query" default="popular"/>
<key id="maxdays" type="xs:string" paramType="query"/>
<!-- TODO takes multiple values -->
<key id="apis" type="xs:string" paramType="query"/>
</inputs>
</select>
</bindings>
</table>