Skip to content
Browse files

Merge remote branch 'disavian/master'

  • Loading branch information...
2 parents fb73313 + 5f8a0c9 commit 1ee7ebb9613eefc54735a3961ec993a2864a73d1 @sh1mmer sh1mmer committed
View
36 foursquare/foursquare.addvenue.xml
@@ -0,0 +1,36 @@
+<?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/addvenue</url>
+ </urls>
+ <inputs>
+ <key id="name" type="xs:string" paramType="query" required="true" />
+ <key id="address" type="xs:string" paramType="query" required="false" />
+ <key id="crossstreet" type="xs:string" paramType="query" required="false" />
+ <key id="city" type="xs:string" paramType="query" required="false" />
+ <key id="state" type="xs:string" paramType="query" required="false" />
+ <key id="zip" type="xs:string" paramType="query" required="false" />
+ <key id="phone" type="xs:string" paramType="query" required="false" />
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" type="xs:string" paramType="query" required="false" />
+ <key id="primarycategoryid" 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).post(y.queryParams).response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
15 foursquare/foursquare.categories.xml
@@ -0,0 +1,15 @@
+<?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/categories</url>
+ </urls>
+ </select>
+ </bindings>
+</table>
View
39 foursquare/foursquare.checkin.xml
@@ -0,0 +1,39 @@
+<?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/checkin</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="false" />
+ <key id="venue" type="xs:string" paramType="query" required="false" />
+ <key id="shout" type="xs:string" paramType="query" required="false" />
+ <key id="private" type="xs:string" paramType="query" required="false" />
+ <key id="twitter" type="xs:string" paramType="query" required="false" />
+ <key id="facebook" type="xs:string" paramType="query" required="false" />
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" 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[
+ if(!vid && !venue && !shout){
+ out = <error>I need a vid, venue or shout</error>
+ response.object = out;
+ } else {
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).post(y.queryParams).response;
+ }
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
26 foursquare/foursquare.checkins.xml
@@ -0,0 +1,26 @@
+<?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/checkins</url>
+ </urls>
+ <inputs>
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" 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>
View
27 foursquare/foursquare.flagclosed.xml
@@ -0,0 +1,27 @@
+<?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} where vid="1"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/flagclosed</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="true" />
+ <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).post(y.queryParams).response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
25 foursquare/foursquare.friends.xml
@@ -0,0 +1,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>
View
26 foursquare/foursquare.history.xml
@@ -0,0 +1,26 @@
+<?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/history</url>
+ </urls>
+ <inputs>
+ <key id="l" type="xs:string" paramType="query" required="false" />
+ <key id="sinceid" 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>
View
36 foursquare/foursquare.proposeedit.xml
@@ -0,0 +1,36 @@
+<?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/proposeedit</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="true" />
+ <key id="name" type="xs:string" paramType="query" required="true" />
+ <key id="address" type="xs:string" paramType="query" required="true" />
+ <key id="crossstreet" type="xs:string" paramType="query" required="false" />
+ <key id="city" type="xs:string" paramType="query" required="true" />
+ <key id="state" type="xs:string" paramType="query" required="true" />
+ <key id="zip" type="xs:string" paramType="query" required="false" />
+ <key id="phone" type="xs:string" paramType="query" required="false" />
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" 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).post(y.queryParams).response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
27 foursquare/foursquare.user.xml
@@ -0,0 +1,27 @@
+<?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/user</url>
+ </urls>
+ <inputs>
+ <key id="uid" type="xs:string" paramType="query" required="false" />
+ <key id="badges" type="xs:string" paramType="query" required="false" />
+ <key id="mayor" 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>
View
32 foursquare/foursquare.venue.xml
@@ -0,0 +1,32 @@
+<?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} where vid="125694"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/venue</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="true" />
+ <key id="username" type="xs:string" paramType="variable" required="false" />
+ <key id="password" type="xs:string" paramType="variable" required="false" />
+ </inputs>
+ <execute><![CDATA[
+ if(username && password)
+ {
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).get().response;
+ }
+ else
+ {
+ response.object = request.get().response;
+ }
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
21 foursquare/foursquare.venues.xml
@@ -0,0 +1,21 @@
+<?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} where geolat="33.7772869" and geolong="-84.3976068"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/venues</url>
+ </urls>
+ <inputs>
+ <key id="geolat" type="xs:string" paramType="query" required="true" />
+ <key id="geolong" type="xs:string" paramType="query" required="true" />
+ <key id="l" type="xs:string" paramType="query" required="false" />
+ <key id="q" type="xs:string" paramType="query" required="false" />
+ </inputs>
+ </select>
+ </bindings>
+</table>

0 comments on commit 1ee7ebb

Please sign in to comment.
Something went wrong with that request. Please try again.