Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Bad Authentication Data when trying to get request token #43

Open
siddharthgopi opened this issue Sep 17, 2016 · 2 comments
Open

Bad Authentication Data when trying to get request token #43

siddharthgopi opened this issue Sep 17, 2016 · 2 comments

Comments

@siddharthgopi
Copy link

siddharthgopi commented Sep 17, 2016

var twitterAPI = require('node-twitter-api');
var twitter = new twitterAPI({
  consumer_key: "removed",
  consumer_secret: "removed",
  callback: 'http://52.43.53.156:3000'
});

response:

Error getting OAuth request token : [object Object]
statusCode=400
data={"errors":[{"code":215,"message":"Bad Authentication data."}]}

My callback in this code is the same as what i entered in the twitter web interface.

@siddharthgopi
Copy link
Author

siddharthgopi commented Sep 18, 2016

Is it correct that I have to take consumer_key and consumer_secret without any further modification directly from the twitter dashboard? as in the api_key and api_secret in https://apps.twitter.com/app/12851437/keys

  • All the twitter libraries are giving the same bad authentication error.
  • Does node version matter? [note: tried running it on https://runkit.com/npm/node-twitter-api. same bad authentication.]
  • I'm running express 4.14.0

@reneraab
Copy link
Owner

Yes, you need to use the API key and API secret. What exactly have you been trying to do, when you received the error?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants