Permalink
Browse files

adding in mattes github changes

  • Loading branch information...
pjdonnelly committed Mar 25, 2013
1 parent a6d93a0 commit 3074c75cbcd11c91d18fffd2c37814d974ef60e5
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Matthias Kadenbach, https://github.com/mattes</author>
+ <documentationURL>http://developer.github.com/v3/activity/events/</documentationURL>
+ <description>List public events for an organization. Events are optimized for polling with the ETag header. If no new events have been triggered, you will see a 304 Not Modified response, and your current rate limit will be untouched.</description>
+ <sampleQuery>select * from {table} where org='jungpark'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json.json" produces="JSON">
+ <urls>
+ <url>https://api.github.com/orgs/{org}/events</url>
+ </urls>
+ <inputs>
+ <key id="org" type="xs:string" paramType="path" required="true"/>
+ <key id="If-None-Match" type="xs:string" paramType="header" required="false"/>
+ <!-- @todo get ETag from headers and return it -->
+ </inputs>
+ <paging model="page">
+ <start id="page" default="1" />
+ <pagesize id="per_page" max="30" />
+ <total default="30" />
+ </paging>
+ </select>
+ </bindings>
+</table>
+
+
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Matthias Kadenbach, https://github.com/mattes</author>
+ <documentationURL>http://developer.github.com/v3/#rate-limiting</documentationURL>
+ <description>You can also check your rate limit status without incurring an API hit.</description>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select produces="JSON">
+ <urls>
+ <url>https://api.github.com/rate_limit</url>
+ </urls>
+ </select>
+ </bindings>
+</table>
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Matthias Kadenbach, https://github.com/mattes</author>
+ <documentationURL>http://developer.github.com/v3/activity/events/</documentationURL>
+ <description>List events performed by a user. Events are optimized for polling with the ETag header. If no new events have been triggered, you will see a 304 Not Modified response, and your current rate limit will be untouched.</description>
+ <sampleQuery>select * from {table} where user='mattes'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json.json" produces="JSON">
+ <urls>
+ <url>https://api.github.com/users/{user}/events</url>
+ </urls>
+ <inputs>
+ <key id="user" type="xs:string" paramType="path" required="true"/>
+ <key id="If-None-Match" type="xs:string" paramType="header" required="false"/>
+ <!-- @todo get ETag from headers and return it -->
+ </inputs>
+ <paging model="page">
+ <start id="page" default="1" />
+ <pagesize id="per_page" max="30" />
+ <total default="30" />
+ </paging>
+ </select>
+ </bindings>
+</table>
+
+
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Matthias Kadenbach, https://github.com/mattes</author>
+ <documentationURL>http://developer.github.com/v3/activity/starring/</documentationURL>
+ <description>List repositories being starred.</description>
+ <sampleQuery>select * from {table} where user='mattes'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json.json" produces="JSON">
+ <urls>
+ <url>https://api.github.com/users/{user}/starred</url>
+ </urls>
+ <inputs>
+ <key id="user" type="xs:string" paramType="path" required="true"/>
+ <key id="sort" type="xs:string" paramType="query" required="false"/><!-- created|updated -->
+ <key id="direction" type="xs:string" paramType="query" required="false"/><!-- asc|desc -->
+
+ </inputs>
+ <paging model="page">
+ <start id="page" default="1" />
+ <pagesize id="per_page" max="100" />
+ <total default="30" />
+ </paging>
+ </select>
+ </bindings>
+</table>
View
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
+ <meta>
+ <author>Matthias Kadenbach, https://github.com/mattes</author>
+ <documentationURL>http://developer.github.com/v3/users/</documentationURL>
+ <description>List repositories being starred.</description>
+ <sampleQuery>select * from {table} where user='mattes'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>https://api.github.com/users/{user}</url>
+ </urls>
+ <inputs>
+ <key id="user" type="xs:string" paramType="path" required="true"/>
+
+ </inputs>
+ </select>
+ </bindings>
+</table>
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" >
+ <meta>
+ <author>Zach Graves (zachg@yahoo-inc.com)</author>
+ <author>Matthias Kadenbach (https://github.com/mattes)</author>
+
+ <description>Returns a collection of the most recent Tweets posted by a user. Requires user context (OAuth keys). Create app at https://dev.twitter.com/apps to obtain your personal OAuth keys. The result is a string, make sure to parse it as JSON.</description>
+ <documentationURL>https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline</documentationURL>
+
+ <!-- you may want to create your own oauth keys ... -->
+ <sampleQuery>select * FROM {table} WHERE screen_name="YQLTest567" AND consumer_key="08ZNcNfdoCgYTzR7qcW1HQ" AND consumer_secret="PTMIdmhxAavwarH3r4aTnVF7iYbX6BRfykNBHIaB8" AND access_token="1181240586-JIgvJe4ev3NHdHnAqnovHINWfpo0qB2S2kZtVRI" AND access_token_secret="1nodv0LBsi7jS93e38KiW8cHOA5iUc6FT4L6De7kgk"</sampleQuery>
+
+ </meta>
+ <bindings>
+ <select produces="JSON">
+ <urls>
+ <url>https://api.twitter.com/1.1/statuses/user_timeline.json</url>
+ </urls>
+ <inputs>
+ <key id="screen_name" type="xs:string" paramType="query" required="false"/>
+ <key id="user_id" type="xs:string" paramType="query" required="false"/>
+
+ <key id="since_id" type="xs:string" paramType="query" required="false"/>
+ <key id="count" type="xs:string" paramType="query" required="false"/>
+ <key id="max_id" type="xs:string" paramType="query" required="false"/>
+ <key id="trim_user" type="xs:string" paramType="query" required="false"/>
+ <key id="exclude_replies" type="xs:string" paramType="query" required="false"/>
+ <key id="contributor_details" type="xs:string" paramType="query" required="false"/>
+ <key id="include_rts" type="xs:string" paramType="query" required="false"/>
+
+ <!-- Create app at https://dev.twitter.com/apps to obtain your personal OAuth keys. -->
+ <key id="consumer_key" type="xs:string" paramType="variable" required="true"/>
+ <key id="consumer_secret" type="xs:string" paramType="variable" required="true"/>
+ <key id="access_token" type="xs:string" paramType="variable" required="true"/>
+ <key id="access_token_secret" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ y.include("http://www.datatables.org/oauth/oauth.utils.js");
+ /* @todo parse json result here?! */
+ response.object = sendRequest({
+ action: request.url,
+ method: 'GET',
+ accessor: {
+ consumerKey: consumer_key,
+ consumerSecret: consumer_secret,
+ realm: request.url,
+ token: access_token,
+ tokenSecret: access_token_secret
+ },
+ parameters: null
+ });
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>

0 comments on commit 3074c75

Please sign in to comment.