PHP Class WeibaApi, thinksns

Inheritance: extends Api
Show file Open project: medz/thinksns-4

Public Methods

Method Description
_formatFollowState ( integer $uid, $weiba_ids, array $follow_data ) : array 格式化,用户的关注数据
_post_list ( $list )
_weiba_recommend ( $limit = 8, $width = 200, $height = 200 ) 圈子推荐
addPostDigg ( ) 赞帖子
add_post ( $imgs )
add_post_digg ( )
all_wieba ( )
comment_post ( ) : array 评论帖子 --using
delPostDigg ( ) 取消赞帖子
del_post ( ) : json 删除帖子
del_post_digg ( ) 取消赞
deletePost ( ) : boolean 删除微吧帖子 直接把PC删除的Action代码copy
denounce_weiba ( ) : array 举报一条微博 --using
detail ( ) : array 圈子 --using
detail_digest ( )
digest_all ( )
digg_lists ( )
doFollowWeiba ( ) : integer 关注圈子
favorite ( ) 收藏帖子
findWeiba ( )
getDiggList ( ) : array 获取当前用户帖子点赞消息列表
getFollowStateByWeibaids ( $uid, $weiba_ids ) : [type] 批量获取圈子关注状态
getRemind2PostReply ( ) : integer 获取帖子评论提醒
getUnreadDiggNum ( ) : integer 获取当前用户未读的点赞列表
getUserFavorite ( ) : array 获取用户收藏的帖子列表
get_weiba_url ( ) * 微吧详情3G版链接地址
post_all ( )
post_detail ( ) : array 帖子详情 --using
post_one ( )
recommend_all ( )
recommend_topic ( )
recommends ( $limit = 8, $width = 200, $height = 200 ) 推荐圈子 推荐人员
search_topic ( )
setNewcount ( $weiba_id, $num = 1 )
unFollowWeiba ( ) : integer 取消关注圈子
unfavorite ( ) 取消收藏帖子
upload_photo ( )
weiba_comments ( $feed_id, $count ) : array 获取指定分享的评论列表 --using
weiba_creat_my ( ) 我创建的圈子
weiba_detail ( ) : array 圈子 --using
weiba_join_my ( ) 我加入的圈子
weiba_post_digg ( $feed_id, $count = 10 ) : array 获取指定帖子的赞过的人的列表 --using

Private Methods

Method Description
get_user_info ( $uid ) : array 获取用户信息 --using

Method Details

_formatFollowState() public method

格式化,用户的关注数据
public _formatFollowState ( integer $uid, $weiba_ids, array $follow_data ) : array
$uid integer 用户ID
$follow_data array 关注状态数据
return array 格式化后的用户关注状态数据

_post_list() public method

public _post_list ( $list )

_weiba_recommend() public method

圈子推荐
public _weiba_recommend ( $limit = 8, $width = 200, $height = 200 )

addPostDigg() public method

赞帖子
public addPostDigg ( )

add_post() public method

public add_post ( $imgs )

add_post_digg() public method

public add_post_digg ( )

all_wieba() public method

public all_wieba ( )

comment_post() public method

评论帖子 --using
public comment_post ( ) : array
return array 状态+提示

delPostDigg() public method

取消赞帖子
public delPostDigg ( )

del_post() public method

删除帖子
public del_post ( ) : json
return json 删除消息

del_post_digg() public method

取消赞
public del_post_digg ( )

deletePost() public method

删除微吧帖子 直接把PC删除的Action代码copy
Author: Seven Du ([email protected])
public deletePost ( ) : boolean
return boolean

denounce_weiba() public method

举报一条微博 --using
public denounce_weiba ( ) : array
return array 状态+提示

detail() public method

圈子 --using
public detail ( ) : array
return array 圈子信息

detail_digest() public method

public detail_digest ( )

digest_all() public method

public digest_all ( )

digg_lists() public method

public digg_lists ( )

doFollowWeiba() public method

关注圈子
public doFollowWeiba ( ) : integer
return integer 新添加的数据ID

favorite() public method

收藏帖子
public favorite ( )

findWeiba() public method

public findWeiba ( )

getDiggList() public method

获取当前用户帖子点赞消息列表
Author: Seven Du ([email protected])
public getDiggList ( ) : array
return array

getFollowStateByWeibaids() public method

批量获取圈子关注状态
public getFollowStateByWeibaids ( $uid, $weiba_ids ) : [type]
return [type]

getRemind2PostReply() public method

获取帖子评论提醒
Author: Seven Du ([email protected])
public getRemind2PostReply ( ) : integer
return integer

getUnreadDiggNum() public method

获取当前用户未读的点赞列表
Author: Seven Du ([email protected])
public getUnreadDiggNum ( ) : integer
return integer

getUserFavorite() public method

获取用户收藏的帖子列表
Author: Seven Du ([email protected])
public getUserFavorite ( ) : array
return array

get_weiba_url() public method

* 微吧详情3G版链接地址
public get_weiba_url ( )

post_all() public method

public post_all ( )

post_detail() public method

帖子详情 --using
public post_detail ( ) : array
return array 帖子信息

post_one() public method

public post_one ( )

recommend_all() public method

public recommend_all ( )

recommend_topic() public method

public recommend_topic ( )

recommends() public method

推荐圈子 推荐人员
public recommends ( $limit = 8, $width = 200, $height = 200 )

search_topic() public method

public search_topic ( )

setNewcount() public method

public setNewcount ( $weiba_id, $num = 1 )

unFollowWeiba() public method

取消关注圈子
public unFollowWeiba ( ) : integer
return integer 新添加的数据ID

unfavorite() public method

取消收藏帖子
public unfavorite ( )

upload_photo() public method

public upload_photo ( )

weiba_comments() public method

获取指定分享的评论列表 --using
public weiba_comments ( $feed_id, $count ) : array
return array 评论列表

weiba_creat_my() public method

我创建的圈子
public weiba_creat_my ( )

weiba_detail() public method

圈子 --using
public weiba_detail ( ) : array
return array 圈子信息

weiba_join_my() public method

我加入的圈子
public weiba_join_my ( )

weiba_post_digg() public method

获取指定帖子的赞过的人的列表 --using
public weiba_post_digg ( $feed_id, $count = 10 ) : array
return array 点赞的用户列表