We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! I'am trying to use Twitter api. const OAuth = require('OAuth'); const oauth = new OAuth.OAuth( 'https://api.twitter.com/oauth/request_token', 'https://api.twitter.com/oauth/access_token', '...', '...', '1.0A', null, 'HMAC-SHA1' );
Here is my request: oauth.post( constants.BASE + 'collections/create.json?name=' + name, constants.TOKEN, constants.SECRET, (e, data, response) => { console.log(JSON.parse(data)); });
oauth.post( constants.BASE + 'collections/create.json?name=' + name, constants.TOKEN, constants.SECRET, (e, data, response) => { console.log(JSON.parse(data)); });
But I received _throw er; // Unhandled 'error' event Error: socket hang up at createHangUpError (_http_client.js:331:15)
Instead oauth.get( constants.BASE + 'search/tweets.json?q=' + id + '&count=10', constants.TOKEN, constants.SECRET, (e, data, response) => { console.log(JSON.parse(data)); }); works fine!
oauth.get( constants.BASE + 'search/tweets.json?q=' + id + '&count=10', constants.TOKEN, constants.SECRET, (e, data, response) => { console.log(JSON.parse(data)); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! I'am trying to use Twitter api.
const OAuth = require('OAuth');
const oauth = new OAuth.OAuth(
'https://api.twitter.com/oauth/request_token',
'https://api.twitter.com/oauth/access_token',
'...',
'...',
'1.0A',
null,
'HMAC-SHA1'
);
Here is my request:
oauth.post( constants.BASE + 'collections/create.json?name=' + name, constants.TOKEN, constants.SECRET, (e, data, response) => { console.log(JSON.parse(data)); });
But I received
_throw er; // Unhandled 'error' event
Error: socket hang up at createHangUpError (_http_client.js:331:15)
Instead
oauth.get( constants.BASE + 'search/tweets.json?q=' + id + '&count=10', constants.TOKEN, constants.SECRET, (e, data, response) => { console.log(JSON.parse(data)); });
works fine!
The text was updated successfully, but these errors were encountered: