Skip to content

Instantly share code, notes, and snippets.

@earth2marsh
Created March 9, 2010 16:14
Show Gist options
  • Save earth2marsh/326748 to your computer and use it in GitHub Desktop.
Save earth2marsh/326748 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" https="true">
<meta>
<sampleQuery>select * from {table} where domain="YOURSUBDOMAIN" and email="user@domain.com" and apikey="YOURHIGHRISETOKEN"</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url>https://{domain}.highrisehq.com/people/search.xml?criteria[email]={email}
</url>
</urls>
<inputs>
<key id="domain" type="xs:string" required="true" paramType="path"/>
<key id="email" type="xs:string" required="true" paramType="path"/>
<key id="apikey" type="xs:string" required="true" paramType="variable"/>
</inputs>
<execute><![CDATA[
var r = null;
y.include("http://yqlblog.net/samples/base64.js");
var authheader = "Basic "+Base64.encode(apikey+":X");
r = request.header("Authorization",authheader).get().response;
response.object = r;
]]></execute>
</select>
</bindings>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment