Meteor JS-Twitter API 400错误

Meteor JS-Twitter API 400错误,twitter,meteor,Twitter,Meteor,我一直试图通过Meteor访问twitter的api,但在正确验证我的请求时遇到了问题 我尝试过使用流式API和Rest API。我目前主要关注RESTAPI 这是我的GET请求的代码 Meteor.methods({ checkTwitter: function() { var result = Meteor.http.call("GET", 'https://api.twitter.com/1.1/statuses/home_timeline.json', { content: 'appl

我一直试图通过Meteor访问twitter的api,但在正确验证我的请求时遇到了问题

我尝试过使用流式API和Rest API。我目前主要关注RESTAPI

这是我的GET请求的代码

Meteor.methods({
checkTwitter: function() {
var result = Meteor.http.call("GET", 
'https://api.twitter.com/1.1/statuses/home_timeline.json',
{
content: 'application/json', //application/json
timeout: 30000,
headers: {
Authorization : 'OAuth oauth_consumer_key="g5uVCKU3QUHBydsMgceIhQ",oauth_nonce="6c34c5c8de9169f1b9dfc08659a3f706",oauth_signature="DA0HwxO6yW6Ow2XTNZb79Xkxwoc%3D", oauth_signature_method="HMAC-SHA1",oauth_timestamp="1367030141",oauth_token="5754612SfpuVX8xxLAjD6md5bmJUXQWNnWj8tXMftlnNHcJxT", oauth_version="1.0"'
}
}
);
console.log(result);
return result;
}
})
以下是记录的响应:

{ statusCode: 400,
content: undefined,
headers: { 'content-length': '0', connection: 'close' },
data: null,
error: [Error: failed]
}

我已经看过meteor文档,但它们的简单示例并没有涵盖我的情况。谢谢你的帮助。

没关系。。能够让RESTAPI让用户时间线正常工作。