-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·32 lines (29 loc) · 909 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// var express = require('express')
// var app = express()
//
// app.get('/', function (req, res) {
// res.send('Hello World!')
// })
//
// var server = app.listen(5000, function () {
//
// var host = server.address().address
// var port = server.address().port
//
// console.log('Example app listening at http://%s:%s', host, port)
//
// })
var Twitter = require('twitter');
var client = new Twitter({
consumer_key: '5zLQG35QzfZp8KCrgcHoMKxhH',
consumer_secret: 'O7llcLCmEYaoEWY7VOWdH0IagmCLbU1cfuOSDuBdMIBEeNEl95',
access_token_key: '128040954-qcv4RhxSzkPWWghtQOUt2FpjjbQ6a2OdiiBTa2PG',
access_token_secret: 'tW9RC2m56ZXfLGNQBLxSnIcuDGMrffEEgF7pJS0vyjzR9'
});
var params = {screen_name: 'thedemigs', trim_user: true};
client.get('statuses/user_timeline', params, function(error, tweets, response){
if (!error) {
// console.log(tweets);
console.log(tweets.length);
}
});