SaeTClientV2::friends_by_name PHP Method

friends_by_name() public method

如果没有提供cursor参数,将只返回最前面的5000个关注id
对应API:{@link http://open.weibo.com/wiki/2/friendships/friends friendships/friends}
public friends_by_name ( string $screen_name, integer $cursor, integer $count = 50 ) : array
$screen_name string 要获取的用户的 screen_name
$cursor integer 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0。
$count integer 单页返回的记录条数,默认为50,最大不超过200。
return array
    function friends_by_name($screen_name, $cursor = 0, $count = 50)
    {
        $params = array();
        $params['cursor'] = $cursor;
        $params['count'] = $count;
        $params['screen_name'] = $screen_name;
        return $this->oauth->get('friendships/friends', $params);
    }
SaeTClientV2