数字化技能提升教程,数字化时代生存宝典

数字化百科 / 词条 / ThinkSNS动态API-feed get($map, $limit)

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

查看全部词条命名空间:Main

导航: 上一页

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) "刘伟上传了1 张照片"
["body"] => string(61) ""
}
[1] => array(2) {
["title"] => string(51) "刘伟上传了1 张照片"
["body"] => string(61) ""
}
[2] => array(2) {
["title"] => string(51) "刘伟上传了1 张照片"
["body"] => string(61) ""
}
})

参考资料

category:ThinkSNS