Twitter:为什么 statuses/user_timeline.json returns 是一个空数组?

Twitter: Why statuses/user_timeline.json returns an empty array?

我想查看另一个用户的时间线,我想知道为什么 user_timeline.json returns 是一个空数组?当我不输入参数时它工作正常,它显示经过身份验证的用户时间线但是当我将 user_id 作为参数时我看不到其他用户时间线。为什么?

这是我的代码:

getUserTimeline: function(id_str) {
    var endpoint_url = CONSTANTS.BASE_URL + 'statuses/user_timeline.json';
    createTwitterSignatureParams('GET', endpoint_url, 'user_id', id_str);
    return $resource(endpoint_url).get({'user_id': id_str}).$promise;
},

问题已解决!

只需通过 QUERY 更改 GET
$resource(endpoint_url).get(...) ==> $resource(endpoint_url).query(...)