Skip to content

Instantly share code, notes, and snippets.

@benschwarz
Created November 7, 2012 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benschwarz/4031901 to your computer and use it in GitHub Desktop.
Save benschwarz/4031901 to your computer and use it in GitHub Desktop.
A YQL table for instagram.user.media.recent
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ben Schwarz</author>
<description>Get the recent images for a given user on instagram</description>
<documentationURL>http://instagram.com/developer/endpoints/users/#get_users_media_recent</documentationURL>
<apiKeyURL></apiKeyURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<inputs>
<key id="userid" type="xs:string" paramType="path" required="true" />
<key id="count" type="xs:string" paramType="query" />
<key id="access_token" type="xs:string" paramType="query" required="true" />
</inputs>
<execute>
<![CDATA[
response.object = y.rest('https://api.instagram.com/v1/users/{userid}/media/recent/?access_token={access_token}').get().response;
]]>
</execute>
</select>
</bindings>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment