Skip to content

Commit

Permalink
api: Test env things
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Oct 28, 2020
1 parent 4e618d1 commit 5d952ff
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
6 changes: 0 additions & 6 deletions api/test.ts

This file was deleted.

26 changes: 26 additions & 0 deletions api/twitter-auth.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {NowRequest, NowResponse} from '@vercel/node';

export default (request: NowRequest, response: NowResponse) => {
// var oauth = new OAuth.OAuth(
// 'https://api.twitter.com/oauth/request_token',
// 'https://api.twitter.com/oauth/access_token',
// 'your application consumer key',
// 'your application secret',
// '1.0A',
// null,
// 'HMAC-SHA1'
// );
// oauth.get(
// 'https://api.twitter.com/1.1/trends/place.json?id=23424977',
// 'your user token for this app', //test user token
// 'your user secret for this app', //test user secret
// function (e, data, res){
// if (e) console.error(e);
// console.log(require('util').inspect(data));
// done();
// });
// });

const {name = 'World'} = request.query;
response.status(200).json(process.env);
};

1 comment on commit 5d952ff

@vercel
Copy link

@vercel vercel bot commented on 5d952ff Oct 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.