这将返回“错误的身份验证数据”错误
request.post({
url: "https://api.twitter.com/1.1/statuses/update.json",
oauth: {
consumer_key: auth.twitter.consumerKey,
consumer_secret: auth.twitter.consumerSecret,
access_token_key: this.authToken,
access_token_secret: this.authSecret
},
params: {
status: "Check this out!!"
}
}, function(err, response, body) {
return console.log(err, body); // null '{"errors":[{"message":"Bad Authentication data","code":215}]}'
});
知道我做错了什么吗?