Last active
August 29, 2015 14:14
-
-
Save cf/91039f06b780064fa552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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