[WIP] Twitter support

This commit is contained in:
syuilo
2017-01-20 11:09:54 +09:00
parent 6c36c2419f
commit 257d54d1e6
5 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import * as express from 'express';
//import * as Twitter from 'twitter';
import Twitter = require('twitter');
const client = new Twitter({
consumer_key: process.env.TWITTER_CONSUMER_KEY,
consumer_secret: process.env.TWITTER_CONSUMER_SECRET
});
module.exports = (req: express.Request, res: express.Response) => {
client.get('oauth/request_token', (x, y, z) => {
console.log(x);
console.log(y);
console.log(z);
});
};