[WIP] Twitter support
This commit is contained in:
parent
6c36c2419f
commit
257d54d1e6
5 changed files with 25 additions and 0 deletions
16
src/web/service/twitter/begin.ts
Normal file
16
src/web/service/twitter/begin.ts
Normal 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);
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue