Documentation ¶
Index ¶
- Constants
- type AttitudeAndTotalNumberResp
- type AttitudesShowBizResp
- type AttitudesToMeBizResp
- type CommentsAndTotalNumberResp
- type CommentsByMeBizResp
- type CommentsByMeOtherResp
- type CommentsCreateBizResp
- type CommentsDestroyBizResp
- type CommentsMentionsBizResp
- type CommentsMentionsOtherResp
- type CommentsReplyBizResp
- type CommentsShowAllResp
- type CommentsShowBatchBizResp
- type CommentsShowBizResp
- type CommentsTimelineBizResp
- type CommentsTimelineOtherResp
- type CommentsToMeBizResp
- type CommentsToMeOtherResp
- type ErrorResp
- type FriendshipsCreateBizResp
- type FriendshipsDestroyBizResp
- type FriendshipsFollowersBizResp
- type FriendshipsFollowersDestroyBizResp
- type FriendshipsFriendsBizResp
- type FriendshipsRemarkUpdateBizResp
- type PlaceUserTimelineOtherResp
- type SearchStatusesLimitedResp
- type SearchSuggestionsUsersBizResp
- type StatusAndTotalNumberResp
- type StatusesCountBizResp
- type StatusesDestroyBizResp
- type StatusesFilterCreateBizResp
- type StatusesFriendsTimelineBizResp
- type StatusesMentionsBizResp
- type StatusesMentionsOtherResp
- type StatusesMentionsShieldBizResp
- type StatusesPublicTimelineBizResp
- type StatusesRepostAndTotalNumberResp
- type StatusesRepostBizResp
- type StatusesRepostTimelineAllResp
- type StatusesRepostTimelineBizResp
- type StatusesShowBatchBizResp
- type StatusesUpdateBizResp
- type StatusesUploadBizResp
- type StatusesUploadURLTextBizResp
- type StatusesUserTimelineBatchResp
- type StatusesUserTimelineBizResp
- type TagsBizResp
- type TagsTagsBatchOtherResp
- type UsersAndTotalNumberResp
- type UsersCountsBatchOtherResp
- type UsersShowBatchOtherResp
- type UsersShowBizResp
Constants ¶
const IOErrorCode int = -3
IOErrorCode : IO错误码
const IOErrorCodeMsg string = "IO出错"
IOErrorCodeMsg : IO错误码信息
const JSONParseErrorCode int = -2
JSONParseErrorCode : json解析错误
const JSONParseErrorCodeMsg string = "json解析错误"
JSONParseErrorCodeMsg : json解析错误文本
const NetWorkErrorCode int = -1
NetWorkErrorCode : 网络错误码
const NetWorkErrorCodeMsg string = "网络错误"
NetWorkErrorCodeMsg : 网络错误信息
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttitudeAndTotalNumberResp ¶
type AttitudeAndTotalNumberResp struct { Attitudes []bean.Attitude `json:"attitudes"` TotalNumber int64 `json:"total_number"` PeviousCursor int64 `json:"previous_cursor"` NextCursor int64 `json:"next_cursor"` }
AttitudeAndTotalNumberResp : 赞列表和总数
type AttitudesShowBizResp ¶
type AttitudesShowBizResp struct {
AttitudeAndTotalNumberResp
}
AttitudesShowBizResp : 某条信息的赞列表
type AttitudesToMeBizResp ¶
type AttitudesToMeBizResp struct {
AttitudeAndTotalNumberResp
}
AttitudesToMeBizResp : 收到的赞的对象
type CommentsAndTotalNumberResp ¶
type CommentsAndTotalNumberResp struct { Comments []bean.Comment `json:"comments"` TotalNumber int64 `json:"total_number"` PeviousCursor int64 `json:"previous_cursor"` NextCursor int64 `json:"next_cursor"` }
CommentsAndTotalNumberResp : 评论与总数的结果对象
type CommentsByMeBizResp ¶
type CommentsByMeBizResp struct {
CommentsAndTotalNumberResp
}
CommentsByMeBizResp : 获取当前登录用户发出的评论列表
type CommentsByMeOtherResp ¶
type CommentsByMeOtherResp struct {
CommentsAndTotalNumberResp
}
CommentsByMeOtherResp : 获取某个用户发出的评论列表
type CommentsCreateBizResp ¶
CommentsCreateBizResp : 评论一条微博
type CommentsDestroyBizResp ¶
CommentsDestroyBizResp : 删除一条评论 的返回对象
type CommentsMentionsBizResp ¶
type CommentsMentionsBizResp struct {
CommentsAndTotalNumberResp
}
CommentsMentionsBizResp : 获取@当前登录用户的评论
type CommentsMentionsOtherResp ¶
type CommentsMentionsOtherResp struct {
CommentsAndTotalNumberResp
}
CommentsMentionsOtherResp :获取@某人的评论。
type CommentsReplyBizResp ¶
CommentsReplyBizResp : 回复一条评论的返回对象
type CommentsShowAllResp ¶
type CommentsShowAllResp struct {
CommentsAndTotalNumberResp
}
CommentsShowAllResp :返回一条微博的全部评论列表的结果对象
type CommentsShowBatchBizResp ¶
CommentsShowBatchBizResp : 批量获取评论内容,返回的是数组
type CommentsShowBizResp ¶
type CommentsShowBizResp struct {
CommentsAndTotalNumberResp
}
CommentsShowBizResp : 获取当前登录用户发布的微博下的评论列表 结果对象
type CommentsTimelineBizResp ¶
type CommentsTimelineBizResp struct {
CommentsAndTotalNumberResp
}
CommentsTimelineBizResp : 获取当前登录用户发出及收到的评论列表 响应对象
type CommentsTimelineOtherResp ¶
type CommentsTimelineOtherResp struct {
CommentsAndTotalNumberResp
}
CommentsTimelineOtherResp : 获取某个用户发出和收到的评论列表结果对象
type CommentsToMeBizResp ¶
type CommentsToMeBizResp struct {
CommentsAndTotalNumberResp
}
CommentsToMeBizResp : 获取当前登录用户收到的评论列表结果对象
type CommentsToMeOtherResp ¶
type CommentsToMeOtherResp struct {
CommentsAndTotalNumberResp
}
CommentsToMeOtherResp : 获取某个用户收到的评论列表
type ErrorResp ¶
type ErrorResp struct { Request string `json:"request"` ErrorCode int `json:"error_code"` Error string `json:"error"` }
ErrorResp : 错误码返回对象
type FriendshipsCreateBizResp ¶
FriendshipsCreateBizResp : 关注某用户
type FriendshipsDestroyBizResp ¶
FriendshipsDestroyBizResp : 取消关注的用户
type FriendshipsFollowersBizResp ¶
type FriendshipsFollowersBizResp struct {
UsersAndTotalNumberResp
}
FriendshipsFollowersBizResp : 获取当前登录用户的粉丝列表
type FriendshipsFollowersDestroyBizResp ¶
FriendshipsFollowersDestroyBizResp : 移除当前登录用户的粉丝
type FriendshipsFriendsBizResp ¶
type FriendshipsFriendsBizResp struct {
UsersAndTotalNumberResp
}
FriendshipsFriendsBizResp : 获取当前登录用户的关注列表
type FriendshipsRemarkUpdateBizResp ¶
FriendshipsRemarkUpdateBizResp : 更新关注人备注
type PlaceUserTimelineOtherResp ¶
type PlaceUserTimelineOtherResp struct {
StatusAndTotalNumberResp
}
PlaceUserTimelineOtherResp :获取某个用户的位置动态的结果对象
type SearchStatusesLimitedResp ¶
type SearchStatusesLimitedResp struct {
StatusAndTotalNumberResp
}
SearchStatusesLimitedResp : 关键词搜索的结果的对象
type SearchSuggestionsUsersBizResp ¶
type SearchSuggestionsUsersBizResp struct {
bean.SearchSuggestionsUser
}
SearchSuggestionsUsersBizResp : 搜用户搜索建议,返回的是数组
type StatusAndTotalNumberResp ¶
type StatusAndTotalNumberResp struct { Statuses []bean.Status `json:"statuses"` TotalNumber int64 `json:"total_number"` PeviousCursor int64 `json:"previous_cursor"` NextCursor int64 `json:"next_cursor"` }
StatusAndTotalNumberResp : 获取@某人的微博的结果的对象
type StatusesCountBizResp ¶
type StatusesCountBizResp struct { ID string `json:"id"` Comments string `json:"comments"` Reposts string `json:"reposts"` Likes string `json:"likes"` }
StatusesCountBizResp : 批量获取指定微博的转发数评论数喜欢数 响应对象 返回的结果是这个类型的数组
[
{ "id": "32817222", "comments": "16", "reposts": "38", "likes": "38" }, ...
]
type StatusesDestroyBizResp ¶
StatusesDestroyBizResp : 删除一条微博的返回 对象
type StatusesFilterCreateBizResp ¶
StatusesFilterCreateBizResp : 屏蔽某条微博 结果
type StatusesFriendsTimelineBizResp ¶
type StatusesFriendsTimelineBizResp struct {
StatusAndTotalNumberResp
}
StatusesFriendsTimelineBizResp : 获取当前登录用户及其所关注用户的最新微博
type StatusesMentionsBizResp ¶
type StatusesMentionsBizResp struct {
StatusAndTotalNumberResp
}
StatusesMentionsBizResp : 获取@当前登录用户的微博列表
type StatusesMentionsOtherResp ¶
type StatusesMentionsOtherResp struct {
StatusAndTotalNumberResp
}
StatusesMentionsOtherResp : 获取@某人的微博的结果的对象
type StatusesMentionsShieldBizResp ¶
type StatusesMentionsShieldBizResp struct {
Result string `json:"result"`
}
StatusesMentionsShieldBizResp : 屏蔽某个@我的微博及后续由其转发引起的@提及 api结果对象 文档写着返回的是:
{ "result":true }
实际返回的是 "result":"true"
type StatusesPublicTimelineBizResp ¶
type StatusesPublicTimelineBizResp struct {
StatusAndTotalNumberResp
}
StatusesPublicTimelineBizResp : 获取最新的公共微博
type StatusesRepostAndTotalNumberResp ¶
type StatusesRepostAndTotalNumberResp struct { Reposts []bean.Status `json:"reposts"` PeviousCursor int64 `json:"previous_cursor"` NextCursor int64 `json:"next_cursor"` TotalNumber int64 `json:"total_number"` }
StatusesRepostAndTotalNumberResp : 转发微博的结果(数据和totalNumber)
type StatusesRepostBizResp ¶
StatusesRepostBizResp : 转发一条微博的响应对象
type StatusesRepostTimelineAllResp ¶
type StatusesRepostTimelineAllResp struct {
StatusesRepostAndTotalNumberResp
}
StatusesRepostTimelineAllResp :返回一条微博的全部转发微博列表的结果对象
type StatusesRepostTimelineBizResp ¶
type StatusesRepostTimelineBizResp struct {
StatusesRepostAndTotalNumberResp
}
StatusesRepostTimelineBizResp : 获取当前登录用户发布的一条原创微博的最新转发微博
type StatusesShowBatchBizResp ¶
type StatusesShowBatchBizResp struct {
StatusAndTotalNumberResp
}
StatusesShowBatchBizResp : 根据微博ID批量获取微博信息 响应对象
type StatusesUpdateBizResp ¶
StatusesUpdateBizResp : 发布一条微博信息 响应对象
type StatusesUploadBizResp ¶
StatusesUploadBizResp : 上传图片并发布一条微博
type StatusesUploadURLTextBizResp ¶
StatusesUploadURLTextBizResp : 发布一条微博同时指定上传的图片或图片url 结果对象
type StatusesUserTimelineBatchResp ¶
type StatusesUserTimelineBatchResp struct {
StatusAndTotalNumberResp
}
StatusesUserTimelineBatchResp :返回一条微博的全部转发微博列表的结果对象
type StatusesUserTimelineBizResp ¶
type StatusesUserTimelineBizResp struct {
StatusAndTotalNumberResp
}
StatusesUserTimelineBizResp : 获取当前登录用户发布的微博
type TagsBizResp ¶
type TagsBizResp struct {
Body string
}
TagsBizResp : 当前登录用户 的标签
func (TagsBizResp) GetTags ¶
func (t TagsBizResp) GetTags() (resp []map[string]interface{})
GetTags 将返回的结果转换为map数组
type TagsTagsBatchOtherResp ¶
TagsTagsBatchOtherResp :批量获取用户标签结果对象
[{"id":5225532117,"tags":[{"201103260002460337":"美图摄影","weight":"7069191","flag":"0"}]}]
type UsersAndTotalNumberResp ¶
type UsersAndTotalNumberResp struct { Users []bean.User `json:"users"` TotalNumber int64 `json:"total_number"` PeviousCursor int64 `json:"previous_cursor"` NextCursor int64 `json:"next_cursor"` }
UsersAndTotalNumberResp : 用户和总数的结果对象
type UsersCountsBatchOtherResp ¶
type UsersCountsBatchOtherResp struct { ID string `json:"id"` FollowersCount string `json:"followers_count"` FriendsCount string `json:"friends_count"` MutualFriendCount string `json:"mutual_friend_count"` StatusesCount string `json:"statuses_count"` }
UsersCountsBatchOtherResp : 批量获取用户的粉丝数、关注数、微博数
type UsersShowBatchOtherResp ¶
type UsersShowBatchOtherResp struct {
UsersAndTotalNumberResp
}
UsersShowBatchOtherResp :批量获取其他用户的基本信息结果对象
Source Files ¶
- AttitudeAndTotalNumberResp.go
- AttitudesShowBizResp.go
- AttitudesToMeBizResp.go
- CommentsAndTotalNumberResp.go
- CommentsByMeBizResp.go
- CommentsByMeOtherResp.go
- CommentsCreateBizResp.go
- CommentsDestroyBizResp.go
- CommentsMentionsBizResp.go
- CommentsMentionsOtherResp.go
- CommentsReplyBizResp.go
- CommentsShowAllResp.go
- CommentsShowBatchBizResp.go
- CommentsShowBizResp.go
- CommentsTimelineBizResp.go
- CommentsTimelineOtherResp.go
- CommentsToMeBizResp.go
- CommentsToMeOtherResp.go
- ErrorResp.go
- FriendshipsCreateBizResp.go
- FriendshipsDestroyBizResp.go
- FriendshipsFollowersBizResp.go
- FriendshipsFollowersDestroyBizResp.go
- FriendshipsFriendsBizResp.go
- FriendshipsRemarkUpdateBizResp.go
- PlaceUserTimelineOtherResp.go
- SearchStatusesLimitedResp.go
- SearchSuggestionsUsersBizResp.go
- StatusAndTotalNumberResp.go
- StatusesCountBizResp.go
- StatusesDestroyBizResp.go
- StatusesFilterCreateBizResp.go
- StatusesFriendsTimelineBizResp.go
- StatusesMentionsBizResp.go
- StatusesMentionsOtherResp.go
- StatusesMentionsShieldBizResp.go
- StatusesPublicTimelineBizResp.go
- StatusesRepostAndTotalNumberResp.go
- StatusesRepostBizResp.go
- StatusesRepostTimelineAllResp.go
- StatusesRepostTimelineBizResp.go
- StatusesShowBatchBizResp.go
- StatusesUpdateBizResp.go
- StatusesUploadBizResp.go
- StatusesUploadURLTextBizResp.go
- StatusesUserTimelineBatchResp.go
- StatusesUserTimelineBizResp.go
- SysErrorResp.go
- TagsBizResp.go
- TagsTagsBatchOtherResp.go
- UsersAndTotalNumberResp.go
- UsersCountsBatchOtherResp.go
- UsersShowBatchOtherResp.go
- UsersShowBizResp.go