Skip to content
This repository was archived by the owner on Feb 13, 2018. It is now read-only.

Commit d01b838

Browse files
author
Tim Whitlock
committed
probably shouldn't have pushed my oauth secret
1 parent 070e57a commit d01b838

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/rate-limits.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
var client = require('../lib/twitter').createClient();
66

77
client.setAuth (
8-
'4MROlaLN7k2IyzhLrC7bg',
9-
'x0HLIFFAvCGq3kse9EZt5asrPTzMhYxTtztp1QidI',
10-
'16683251-gRyf6HILdKYrnGYvcYl4ZABS2h7Js9ylJ2h22kD8Q',
11-
'V0fmla3bfopj9ApclxcKRfppU8OF9V6iLbHwm9U7I'
8+
'your consumer key',
9+
'your consumer secret',
10+
'some access key',
11+
'some access secret'
1212
);
1313

1414

@@ -21,7 +21,6 @@ function nextPage(){
2121
var resetTime = client.getRateLimitReset();
2222
console.error('Wait until '+ resetTime.toString() );
2323
}
24-
process.exit();
2524
}
2625
else {
2726
console.log('OK: '+cursor+' -> '+page.ids.length+' followers' );
@@ -37,8 +36,8 @@ function nextPage(){
3736
console.log( remaining+' of '+limit+' requests remaining');
3837
}
3938
}
39+
cursor && nextPage();
4040
}
41-
cursor && nextPage();
4241
} );
4342
}
4443
nextPage();

0 commit comments

Comments
 (0)