Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d85e325d18
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (48 sloc) 2.071 kb
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="" https="false">
<author>Sam Pullara (Assisted by TableSaw)</author>
<sampleQuery>select * from {table} where ck=@ck and secret=@secret and lat='37.335088' and lon='-122.067204';</sampleQuery>
var document = {getElementsByTagName:function(value) { return null; }};
// Include the OAuth libraries from
// Collect all the parameters
var encodedurl = request.url;
var accessor = { consumerSecret:secret, tokenSecret:""};
<select produces="JSON">
<key id="version" type="xs:string" paramType="path" default='0.1'/>
<key id="lat" type="xs:string" paramType="path" required="true"/>
<key id="lon" type="xs:string" paramType="path" required="true"/>
<key id="ck" type="xs:string" paramType="variable" required="true"/>
<key id="secret" type="xs:string" paramType="variable" required="true"/>
var message = { action: encodedurl, method: "GET", parameters: [["oauth_consumer_key",ck],["oauth_version","1.0"]]};
// Sign the request
OAuth.SignatureMethod.sign(message, accessor);
try {
// PUT the content to the service along with the OAuth header
response.object = request
.header("Authorization", OAuth.getAuthorizationHeader("", message.parameters))
} catch(err) {
response.object = {'result':'failure', 'error': err};
Jump to Line
Something went wrong with that request. Please try again.