ThinkSNS好友API-friend get($uid,$format):修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第33行: 第33行:
)
)
</pre>
</pre>
==参考资料==
*[http://www.thinksns.com 参考来源]
[[category:ThinkSNS]]

2010年5月23日 (日) 15:25的最新版本

导航: 上一页

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"
}
)

参考资料[ ]