Commit c1179627 authored by 夏彬's avatar 夏彬

添加获取关注用户的接口

parent cc691e5f
......@@ -14,7 +14,8 @@ require __DIR__.'/_init.php';
Follow::setDebug();
//Follow::add(1,1);
$info = Follow::delete(1,1);
//$info = Follow::delete(1,1);
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByUid(514);
$info = Follow::getFollowUser(42);
print_r($info);
......@@ -49,4 +49,16 @@ class Follow extends Client
{
return self::call('follow.check', compact('userId', 'followedUserId'));
}
/**
* 获取关注用户
* @param $userId
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getFollowUser($userId)
{
return self::call('follow.getFollowUser', compact('userId'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment