forked from yql/yql-tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foursquare.friends.xml
25 lines (25 loc) · 974 Bytes
/
foursquare.friends.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Andrew Guyton</author>
<documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
<sampleQuery>select * from {table}</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url>http://api.foursquare.com/v1/friends</url>
</urls>
<inputs>
<key id="uid" type="xs:string" paramType="query" required="false" />
<key id="username" type="xs:string" paramType="variable" required="true" />
<key id="password" type="xs:string" paramType="variable" required="true" />
</inputs>
<execute><![CDATA[
y.include("http://yqlblog.net/samples/base64.js");
var authheader = "Basic "+Base64.encode(username+":"+password);
response.object = request.header("Authorization",authheader).get().response;
]]></execute>
</select>
</bindings>
</table>