Skip to content

Instantly share code, notes, and snippets.

@cf
Last active August 29, 2015 14:14
Show Gist options
  • Save cf/91039f06b780064fa552 to your computer and use it in GitHub Desktop.
Save cf/91039f06b780064fa552 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>swagmaster flash</author>
<description>HTML pages that need putdata</description>
<sampleQuery><![CDATA[ select * from {table} where url='http://httpbin.org/get' ]]></sampleQuery>
<documentationURL></documentationURL>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url>{url}</url>
</urls>
<inputs>
<key id="url" type="xs:string" required="true" paramType="variable"/>
</inputs>
<execute>
<![CDATA[
var myRequest = y.rest(url);
var data = myRequest.get().response;
response.object = <getresult>{data}</getresult>;
]]>
</execute>
</select>
</bindings>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment