config.js (1397B)
1 // main sheet to call the commands and interact with web calls 2 module.exports = { 3 4 consumer_key: 'iPKcerCW1JmKUfQ880ERn8POP', 5 consumer_secret: 'TaPHpZS6bhD1P5VEj8p5lVZ95GiLOccwySDbXRDzgrfcbOT88P', 6 access_token: '1212777559819079680-4nYVYbkIj8t6RUwwmQFIUGO4210ujQ', 7 access_token_secret: 'JtIVh8XD7a8P4FqK3oh35K1bjPgjMb5np2ZVsnfdWAc1j', 8 timeout_ms: 60*1000, // optional HTTP request timeout to apply to all requests. 9 strictSSL: false, // optional - requires SSL certificates to be valid 10 11 }; 12 13 14 // search twitter for all tweets containing the word 'banana' since July 11, 2011 15 16 // T.get('search/tweets', { q: '350z since:2011-07-11', count: 3 }, function(err, data, response) { 17 // console.log(data) 18 // }) 19 // 20 // 21 // 22 // 23 // T.get('followers/ids', { screen_name: 'Greatt_DaNe1' }, function (err, data, response) { 24 // console.log(data.ids) 25 // }) 26 27 28 // fetch to tranlate the ids 29 // async function convert(){ 30 // fetch("https://api.twitter.com/1.1/followers/list.json?cursor=-1&screen_name=twitterdev&skip_status=true&include_user_entities=false", { 31 // headers: { 32 // Authorization: "OAuth oauth_consumer_key=\"consumer-key-for-app\", \n oauth_nonce=\"generated-nonce\", oauth_signature=\"generated-signature\", \n oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"generated-timestamp\", \n oauth_version=\"1.0\"" 33 // } 34 // }) 35 // }