Created
March 9, 2010 16:14
-
-
Save earth2marsh/326748 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" 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