SaeTClientV2::followers_by_id PHP Method

followers_by_id() public method

对应API:{@link http://open.weibo.com/wiki/2/friendships/followers friendships/followers}
public followers_by_id ( integer $uid, integer $cursor, integer $count = 50 ) : array
$uid integer 需要查询的用户UID
$cursor integer false 返回结果的游标,下一页用返回值里的next_cursor,上一页用previous_cursor,默认为0。
$count integer 单页返回的记录条数,默认为50,最大不超过200。
return array
    function followers_by_id($uid, $cursor = 0, $count = 50)
    {
        $params = array();
        $this->id_format($uid);
        $params['uid'] = $uid;
        $params['count'] = $count;
        $params['cursor'] = $cursor;
        return $this->oauth->get('friendships/followers', $params);
    }

Usage Example

Ejemplo n.º 1
0
        $max_id = 0;
        $feature = 1;
        // 0:全部,1:原创,2图片,3视频,4音乐
        $trim_user = 1;
        // 0:返回完整user信息,1:user字段仅返回uid
        $base_app = 0;
        // 0:无限制,1:仅返回通过本应用发布的微博
        $statuses = $c->user_timeline_by_id($uid, $page, $count, $since_id, $max_id, $feature, $trim_user, $base_app);
        if_weiboapi_fail($statuses);
        break;
    case 2:
        // sina_follow
        $uid = $_SESSION['sid'];
        $cursor = 0;
        $count = 50;
        $followers = $c->followers_by_id($uid, $cursor, $count);
        if_weiboapi_fail($followers);
        $friends = $c->friends_by_id($uid, $cursor, $count);
        if_weiboapi_fail($friends);
        break;
    default:
        $msg = '暂不支持该类型';
}
require_once "uiparts/docheader.php";
?>
<body>
	<?php 
include "uiparts/header.php";
?>
	<div id="func_column">
		<ul >
SaeTClientV2