mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-03-21 08:06:31 +00:00
add amount parameter to service method
This commit is contained in:
@@ -15,9 +15,9 @@ module.exports = {
|
||||
/**
|
||||
* Fetch five latest tweets / retweets from Twitter
|
||||
*/
|
||||
getTweets: function() {
|
||||
getTweets: function(amount) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
twitterRestClient.statusesUserTimeline({count: 5}, function(error, result) {
|
||||
twitterRestClient.statusesUserTimeline({count: amount}, function(error, result) {
|
||||
if (error) {
|
||||
reject(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user