Skip to content

Commit

Permalink
add rate limit status method
Browse files Browse the repository at this point in the history
  • Loading branch information
polotek committed Feb 23, 2011
1 parent e732659 commit bd180c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/evented-twitter.js
Expand Up @@ -122,6 +122,10 @@ var REST_API = {
}
}
}
, account: {
_supress:true
, rate_limit_status: {params:null}
}
, direct_messages: {
params: null
, sent: {params:null}
Expand Down
7 changes: 5 additions & 2 deletions test/rest.js
Expand Up @@ -149,7 +149,7 @@ function testTweet() {

t.update('json', { status: 'testing evented-twiter ' + rand}, function(err, data, res) {
if(err) handler('update')(err, data, res);

var data = JSON.parse(data);
setTimeout(function() {
t.retweet('json', {id: data.id_str}, handler('retweet'));
Expand All @@ -168,6 +168,9 @@ function testTweet() {
t.retweetedByIds('json', { id: '30333475600998400' }, handler('retweetedByIds'));
}

function testAccount() {
t.rateLimitStatus('json', null, handler('rateLimitStatus'));
}

function testDM() {
t.directMessages('json', null, handler('directMessages'));
Expand All @@ -185,4 +188,4 @@ function testDM() {
});
}

batch([ testTimeline, testUser, testTweet, testDM ], { batchSize: 1 });
batch([ testTimeline, testUser, testTweet, testAccount, testDM ], { batchSize: 1 });

0 comments on commit bd180c6

Please sign in to comment.