mikeal/request — Issue #174: oauth invalid credentials
Author: demian85
Created: 2012-02-16 21:40:04+00:00
State: open

I cannot get oauth to work. The Twitter example does not work for me. I keep getting the response header:

'x-warning': 'Invalid OAuth credentials detected'

I hace an app, I don't want the user login crap. I just need to send a GET request using my app secret/token/whatever...

var auth = // my app credentials...
request.get({
url : "http://api.twitter.com/1/users/show.json?screen_name=demianr85",
oauth : {
consumer_key : auth.consumerKey,
consumer_secret : auth.consumerSecret,
token : auth.accessToken,
token_secret : auth.accessSecret
}
}, function(err, response, body) {
if (err) throw err;
console.log(response.headers);
});