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

来自站长百科
Zhou3158讨论 | 贡献2010年5月23日 (日) 16:20的版本 (新页面: <span style="text-align:center; border:1px solid #000; float:right; padding:6px;"><strong>导航:</strong> 上一页</span> <div style="clear:both;"></div> '''2、feed_get(...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

导航: 上一页


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


参考资料[ ]