Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
157 lines (143 sloc) 5.57 KB
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Zach Graves (zachg@yahoo-inc.com)</author>
<description>Twitter OAuth API</description>
<documentationURL>http://apiwiki.twitter.com/Twitter-API-Documentation</documentationURL>
<sampleQuery>select * from {table} where list_id=@id;</sampleQuery>
<sampleQuery>select * from {table} where list_id=@list_id and id=@id;</sampleQuery>
<sampleQuery>insert into {table} (list_id, id) values ('team', '995821');</sampleQuery>
</meta>
<bindings>
<select itemPath="users_list" produces="XML">
<urls>
<url>http://api.twitter.com/1/{user}/{list_id}/members.{format}</url>
</urls>
<inputs>
<key id="user" type="xs:string" paramType="path" required="true"/>
<key id="list_id" type="xs:string" paramType="path" required="true"/>
<key id="cursor" type="xs:string" paramType="query" required="false"/>
<key id="format" type="xs:string" paramType="path" default="xml"/>
<key id="oauth_consumer_key" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_consumer_secret" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token_secret" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute>
<![CDATA[
y.include("http://www.datatables.org/oauth/oauth.utils.js");
var accessor = {};
accessor.consumerKey = oauth_consumer_key;
accessor.consumerSecret = oauth_consumer_secret;
accessor.realm = request.url;
accessor.token = oauth_token;
accessor.tokenSecret = oauth_token_secret;
response.object = sendRequest({
action: request.url,
method: "GET",
accessor: accessor,
parameters: null
});
]]>
</execute>
</select>
<select itemPath="user" produces="XML">
<urls>
<url>http://api.twitter.com/1/{user}/{list_id}/members/{id}.{format}</url>
</urls>
<inputs>
<key id="user" type="xs:string" paramType="path" required="true"/>
<key id="list_id" type="xs:string" paramType="path" required="true"/>
<key id="id" type="xs:string" paramType="path" required="true"/>
<key id="format" type="xs:string" paramType="path" default="xml"/>
<key id="oauth_consumer_key" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_consumer_secret" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token_secret" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute>
<![CDATA[
y.include("http://www.datatables.org/oauth/oauth.utils.js");
var accessor = {};
accessor.consumerKey = oauth_consumer_key;
accessor.consumerSecret = oauth_consumer_secret;
accessor.realm = request.url;
accessor.token = oauth_token;
accessor.tokenSecret = oauth_token_secret;
response.object = sendRequest({
action: request.url,
method: "GET",
accessor: accessor,
parameters: null
});
]]>
</execute>
</select>
<insert itemPath="list" produces="XML">
<urls>
<url>http://api.twitter.com/1/{user}/{list_id}/members.{format}</url>
</urls>
<inputs>
<key id="user" type="xs:string" paramType="path" required="true"/>
<key id="list_id" type="xs:string" paramType="path" required="true"/>
<key id="id" type="xs:string" paramType="variable" required="true"/>
<key id="format" type="xs:string" paramType="path" default="xml"/>
<key id="oauth_consumer_key" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_consumer_secret" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token_secret" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute>
<![CDATA[
y.include("http://www.datatables.org/oauth/oauth.utils.js");
var accessor = {};
accessor.consumerKey = oauth_consumer_key;
accessor.consumerSecret = oauth_consumer_secret;
accessor.realm = request.url;
accessor.token = oauth_token;
accessor.tokenSecret = oauth_token_secret;
var parameters = [];
parameters.push(["id",id]);
response.object = sendRequest({
action: request.url,
method: "POST",
accessor: accessor,
parameters: parameters
});
]]>
</execute>
</insert>
<delete>
<urls>
<url>http://api.twitter.com/1/{user}/{list_id}/members.{format}</url>
</urls>
<inputs>
<key id="user" type="xs:string" paramType="path" required="true"/>
<key id="list_id" type="xs:string" paramType="path" required="true"/>
<key id="id" type="xs:string" paramType="query" required="true"/>
<key id="format" type="xs:string" paramType="path" default="xml"/>
<key id="oauth_consumer_key" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_consumer_secret" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token" type="xs:string" paramType="variable" required="true"/>
<key id="oauth_token_secret" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute>
<![CDATA[
y.include("http://www.datatables.org/oauth/oauth.utils.js");
var accessor = {};
accessor.consumerKey = oauth_consumer_key;
accessor.consumerSecret = oauth_consumer_secret;
accessor.realm = request.url;
accessor.token = oauth_token;
accessor.tokenSecret = oauth_token_secret;
response.object = sendRequest({
action: request.url,
method: "DELETE",
accessor: accessor,
parameters: null
});
]]>
</execute>
</delete>
</bindings>
</table>
Something went wrong with that request. Please try again.