-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestYqlTable.xml
More file actions
30 lines (30 loc) · 1.01 KB
/
TestYqlTable.xml
File metadata and controls
30 lines (30 loc) · 1.01 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table} where a='cat' and b='dog';</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url>http://fake.url/{a}</url>
</urls>
<inputs>
<key id='a' type='xs:string' paramType='path' required="true" />
<key id='b' type='xs:string' paramType='variable' required="true" />
<key id='c' type='xs:string' paramType='variable' />
</inputs>
<execute><![CDATA[
// Your javascript goes here. We will run it on our servers
var rText = "some response text";
y.log("passed a: " + a);
y.log("passed c: " + c);
response.object = <item>
<url>{request.url}</url>
<a>{a}</a>
<b>{b}</b>
<rtext>rText</rtext>
</item>;
]]></execute>
</select>
</bindings>
</table>