ThinkSNS动态API-feed get($map, $limit)

来自站长百科
跳转至: 导航、​ 搜索

导航: 上一页


2、feed_get($map, $limit)

描述:获取动态方法,失败返回false

参数说明

参数 属性 空? 说明
map string 或array 查询动态的条件
limit int 返回的条数

调用DEMO:

$map['uid'] = $this->mid; //取我的动态
$this->api->feed_get($map, 10);
(返回:
array(3) {
[0] => array(2) {
["title"] => string(51) "<a href='space.php?1'>刘伟</a>上传了1 张照片"
["body"] => string(61) "<img src="style/default/logo.gif">"
}
[1] => array(2) {
["title"] => string(51) "<a href='space.php?1'>刘伟</a>上传了1 张照片"
["body"] => string(61) "<img src="style/default/logo.gif">"
}
[2] => array(2) {
["title"] => string(51) "<a href='space.php?1'>刘伟</a>上传了1 张照片"
["body"] => string(61) "<img src="style/default/logo.gif">"
}
})


参考资料[ ]