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