Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: d85e325d18
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (49 sloc) 2.149 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>update {table} set location='san francisco, ca' where oauth_consumer_key=@key and oauth_consumer_secret=@secret and oauth_token=@key and oauth_token_secret=@secret;</sampleQuery>
</meta>
<bindings>
<update itemPath="user" produces="XML">
<urls>
<url>http://api.twitter.com/1/account/update_profile.{format}</url>
</urls>
<inputs>
<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"/>
<value id="name" type="xs:string" paramType="variable" required="false"/>
<value id="url" type="xs:string" paramType="variable" required="false"/>
<value id="location" type="xs:string" paramType="variable" required="false"/>
<value id="description" type="xs:string" paramType="variable" required="false"/>
</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 = [];
if(name) parameters.push(['name',name]);
if(url) parameters.push(['url',url]);
if(location) parameters.push(['location',location]);
if(description) parameters.push(['description',description]);
response.object = sendRequest({
action: request.url,
method: "POST",
accessor: accessor,
parameters: parameters
});
]]>
</execute>
</update>
</bindings>
</table>
Jump to Line
Something went wrong with that request. Please try again.