ThinkSNS好友API-friend get($uid,$format)
来自站长百科
导航: 上一页
1、friend_get($uid,$format)
描述:获取用户的好友ID 列表,如果uid 为空则返回当前用户的好友ID 列表,其中,当前用户依靠API user_getLoggedInUser()函数来确定。
参数说明:
| 参数 | 属性 | 空? | 说明 |
| uids | int | 是 | 用户ID |
| format | string | 是 | 指定响应返回的格式。有PHP (默认) JSON 这2 种值可选。 |
调用DEMO:
$api->friend_get();
(返回:array(2) {
[0] => string(1) "2"
[1] => string(1) "3"
}
)