forked from yql/yql-tables
-
Notifications
You must be signed in to change notification settings - Fork 30
/
twfy.getPerson.xml
21 lines (21 loc) · 956 Bytes
/
twfy.getPerson.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="false">
<meta>
<author>Daniel Pett</author>
<description>Get MP details for a single person</description>
<documentationURL>http://www.theyworkforyou.com/api/docs/getPerson</documentationURL>
<sampleQuery description="Get a person's details using their individual id number">select * from {table} where id='10900' and key='{key}';</sampleQuery>
</meta>
<bindings>
<select itemPath="twfy.match" produces="XML">
<urls>
<url>http://www.theyworkforyou.com/api/getPerson</url>
</urls>
<inputs>
<key id="id" type="xs:string" paramType="query" required="true"/>
<key id="key" type="xs:string" paramType="query" required="true" private="true"/>
<key id="output" type="xs:string" paramType="query" const="true" default="xml"/>
</inputs>
</select>
</bindings>
</table>