Documentation
¶
Index ¶
- func AesDecrypt(crypted, key, iv []byte) ([]byte, error)
- func Base64Decode(encodeString string) ([]byte, error)
- func Base64Encode(str []byte) string
- func NewCredentials(clientKey, clientSecret string) *auth.Credentials
- func PKCS5UnPadding(origData []byte) []byte
- type AwemeShareData
- type AwemeShareReq
- type AwemeShareRes
- type ConfigSignReq
- type DDataExternalItemBaseData
- type DYError
- type DYExtra
- type DataExternalBillboardData
- type DataExternalBillboardHotVideoData
- type DataExternalBillboardHotVideoItem
- type DataExternalBillboardHotVideoReq
- type DataExternalBillboardHotVideoRes
- type DataExternalBillboardItem
- type DataExternalBillboardItemVideo
- type DataExternalBillboardLiveData
- type DataExternalBillboardLiveItem
- type DataExternalBillboardLiveReq
- type DataExternalBillboardLiveRes
- type DataExternalBillboardMusicData
- type DataExternalBillboardMusicItem
- type DataExternalBillboardMusicReq
- type DataExternalBillboardMusicRes
- type DataExternalBillboardPropData
- type DataExternalBillboardPropItem
- type DataExternalBillboardPropReq
- type DataExternalBillboardPropRes
- type DataExternalBillboardReq
- type DataExternalBillboardRes
- type DataExternalFansCommentData
- type DataExternalFansCommentItem
- type DataExternalFansCommentReq
- type DataExternalFansCommentRes
- type DataExternalFansFavouriteData
- type DataExternalFansFavouriteItem
- type DataExternalFansFavouriteReq
- type DataExternalFansFavouriteRes
- type DataExternalFansSourceData
- type DataExternalFansSourceItem
- type DataExternalFansSourceReq
- type DataExternalFansSourceRes
- type DataExternalItemBase
- type DataExternalItemBaseReq
- type DataExternalItemBaseRes
- type DataExternalItemComment
- type DataExternalItemCommentData
- type DataExternalItemCommentReq
- type DataExternalItemCommentRes
- type DataExternalItemLike
- type DataExternalItemLikeData
- type DataExternalItemLikeReq
- type DataExternalItemLikeRes
- type DataExternalItemPlay
- type DataExternalItemPlayData
- type DataExternalItemPlayReq
- type DataExternalItemPlayRes
- type DataExternalItemShare
- type DataExternalItemShareData
- type DataExternalItemShareReq
- type DataExternalItemShareRes
- type DataExternalUserComment
- type DataExternalUserCommentData
- type DataExternalUserCommentReq
- type DataExternalUserCommentRes
- type DataExternalUserFans
- type DataExternalUserFansData
- type DataExternalUserFansReq
- type DataExternalUserFansRes
- type DataExternalUserItem
- type DataExternalUserItemData
- type DataExternalUserItemReq
- type DataExternalUserItemRes
- type DataExternalUserLike
- type DataExternalUserLikeData
- type DataExternalUserLikeReq
- type DataExternalUserLikeRes
- type DataExternalUserProfile
- type DataExternalUserProfileData
- type DataExternalUserProfileReq
- type DataExternalUserProfileRes
- type DataExternalUserShare
- type DataExternalUserShareData
- type DataExternalUserShareReq
- type DataExternalUserShareRes
- type DiscoveryEntRankItemData
- type DiscoveryEntRankItemDataAlbum
- type DiscoveryEntRankItemReq
- type DiscoveryEntRankItemRes
- type DiscoveryEntRankVersionData
- type DiscoveryEntRankVersionDataVersion
- type DiscoveryEntRankVersionReq
- type DiscoveryEntRankVersionRes
- type EventStatus
- type EventStatusListReq
- type EventStatusListRes
- type EventStatusListResData
- type EventStatusUpdateBody
- type EventStatusUpdateReq
- type EventStatusUpdateRes
- type EventStatusUpdateResData
- type Fans
- type FansCheckData
- type FansCheckReq
- type FansCheckRes
- type FansDataActiveDaysDistributions
- type FansDataAgeDistributions
- type FansDataDetails
- type FansDataDeviceDistributions
- type FansDataFlowContributions
- type FansDataGenderDistributions
- type FansDataGeographicalDistributions
- type FansDataInterestDistributions
- type FansDataList
- type FansDataReq
- type FansDataRes
- type FansListData
- type FansListReq
- type FansListRes
- type Following
- type FollowingListData
- type FollowingListReq
- type FollowingListRes
- type HotSearchSentence
- type HotSearchSentencesData
- type HotSearchSentencesReq
- type HotSearchSentencesRes
- type HotSearchTrendingSentence
- type HotSearchTrendingSentencesData
- type HotSearchTrendingSentencesReq
- type HotSearchTrendingSentencesRes
- type HotSearchVideosData
- type HotSearchVideosReq
- type HotSearchVideosRes
- type ImageCreateBody
- type ImageCreateReq
- type ImageCreateRes
- type ImageCreateResData
- type ImageUploadReq
- type ImageUploadRes
- type ImageUploadResData
- type ImageUploadResImage
- type ItemComment
- type ItemCommentListData
- type ItemCommentListReq
- type ItemCommentListRes
- type ItemCommentReplyBody
- type ItemCommentReplyData
- type ItemCommentReplyListData
- type ItemCommentReplyListReq
- type ItemCommentReplyListRes
- type ItemCommentReplyReq
- type ItemCommentReplyRes
- type JsTicketData
- type JsTicketReq
- type JsTicketRes
- type Manager
- func (m *Manager) AwemeShare(req AwemeShareReq) (res AwemeShareRes, err error)
- func (m *Manager) DataExternalBillboard(req DataExternalBillboardReq) (res DataExternalBillboardRes, err error)
- func (m *Manager) DataExternalBillboardHotVideo(req DataExternalBillboardHotVideoReq) (res DataExternalBillboardHotVideoRes, err error)
- func (m *Manager) DataExternalBillboardLive(req DataExternalBillboardLiveReq) (res DataExternalBillboardLiveRes, err error)
- func (m *Manager) DataExternalBillboardMusic(req DataExternalBillboardMusicReq) (res DataExternalBillboardMusicRes, err error)
- func (m *Manager) DataExternalBillboardProp(req DataExternalBillboardPropReq) (res DataExternalBillboardPropRes, err error)
- func (m *Manager) DataExternalFansComment(req DataExternalFansCommentReq) (res DataExternalFansCommentRes, err error)
- func (m *Manager) DataExternalFansFavourite(req DataExternalFansFavouriteReq) (res DataExternalFansFavouriteRes, err error)
- func (m *Manager) DataExternalFansSource(req DataExternalFansSourceReq) (res DataExternalFansSourceRes, err error)
- func (m *Manager) DataExternalItemBase(req DataExternalItemBaseReq) (res DataExternalItemBaseRes, err error)
- func (m *Manager) DataExternalItemComment(req DataExternalItemCommentReq) (res DataExternalItemCommentRes, err error)
- func (m *Manager) DataExternalItemLike(req DataExternalItemLikeReq) (res DataExternalItemLikeRes, err error)
- func (m *Manager) DataExternalItemPlay(req DataExternalItemPlayReq) (res DataExternalItemPlayRes, err error)
- func (m *Manager) DataExternalItemShare(req DataExternalItemShareReq) (res DataExternalItemShareRes, err error)
- func (m *Manager) DataExternalUserComment(req DataExternalUserCommentReq) (res DataExternalUserCommentRes, err error)
- func (m *Manager) DataExternalUserFans(req DataExternalUserFansReq) (res DataExternalUserFansRes, err error)
- func (m *Manager) DataExternalUserItem(req DataExternalUserItemReq) (res DataExternalUserItemRes, err error)
- func (m *Manager) DataExternalUserLike(req DataExternalUserLikeReq) (res DataExternalUserLikeRes, err error)
- func (m *Manager) DataExternalUserProfile(req DataExternalUserProfileReq) (res DataExternalUserProfileRes, err error)
- func (m *Manager) DataExternalUserShare(req DataExternalUserShareReq) (res DataExternalUserShareRes, err error)
- func (m *Manager) DecryptMobile(encryptMobile string) (string, error)
- func (m *Manager) DiscoveryEntRankItem(req DiscoveryEntRankItemReq) (res DiscoveryEntRankItemRes, err error)
- func (m *Manager) DiscoveryEntRankVersion(req DiscoveryEntRankVersionReq) (res DiscoveryEntRankVersionRes, err error)
- func (m *Manager) EventStatusList(req EventStatusListReq) (res EventStatusListRes, err error)
- func (m *Manager) EventStatusUpdate(req EventStatusUpdateReq) (res EventStatusUpdateRes, err error)
- func (m *Manager) FansCheck(req FansCheckReq) (res FansCheckRes, err error)
- func (m *Manager) FansData(req FansDataReq) (res FansDataRes, err error)
- func (m *Manager) FansList(req FansListReq) (res FansListRes, err error)
- func (m *Manager) FollowingList(req FollowingListReq) (res FollowingListRes, err error)
- func (m *Manager) HotSearchSentences(req HotSearchSentencesReq) (res HotSearchSentencesRes, err error)
- func (m *Manager) HotSearchTrendingSentences(req HotSearchTrendingSentencesReq) (res HotSearchTrendingSentencesRes, err error)
- func (m *Manager) HotSearchVideos(req HotSearchVideosReq) (res HotSearchVideosRes, err error)
- func (m *Manager) ImageCreate(req ImageCreateReq) (res *ImageCreateRes, err error)
- func (m *Manager) ImageUpload(req ImageUploadReq) (res *ImageUploadRes, err error)
- func (m *Manager) ItemCommentList(req ItemCommentListReq) (res ItemCommentListRes, err error)
- func (m *Manager) ItemCommentReply(req ItemCommentReplyReq) (res ItemCommentReplyRes, err error)
- func (m *Manager) ItemCommentReplyList(req ItemCommentReplyListReq) (res ItemCommentReplyListRes, err error)
- func (m *Manager) JsConfigSignature(req ConfigSignReq) string
- func (m *Manager) JsTicket(req JsTicketReq) (res JsTicketRes, err error)
- func (m *Manager) MarketServicePurchaseList(req MarketServicePurchaseListReq) (res MarketServicePurchaseListRes, err error)
- func (m *Manager) OauthAccessToken(req OauthAccessTokenReq) (res OauthAccessTokenRes, err error)
- func (m *Manager) OauthClientAccessToken() (res OauthClientAccessTokenRes, err error)
- func (m *Manager) OauthConnect(param OauthParam) string
- func (m *Manager) OauthRefreshToken(req OauthRefreshTokenReq) (res OauthRefreshTokenRes, err error)
- func (m *Manager) OauthRenewRefreshToken(req OauthRenewRefreshTokenReq) (res OauthRenewRefreshTokenRes, err error)
- func (m *Manager) OauthUserinfo(req OauthUserinfoReq) (res *OauthUserinfoRes, err error)
- func (m *Manager) OpenSignature(req OpenSignatureReq) string
- func (m *Manager) OpenTicket(req OpenTicketReq) (res OpenTicketRes, err error)
- func (m *Manager) PoiSearchKeyword(req PoiSearchKeywordReq) (res PoiSearchKeywordRes, err error)
- func (m *Manager) ShareSchema(req ShareSchemaReq) (string, error)
- func (m *Manager) StarAuthorScore(req StarAuthorScoreReq) (res StarAuthorScoreRes, err error)
- func (m *Manager) StarAuthorScoreV2(req StarAuthorScoreV2Req) (res StarAuthorScoreV2Res, err error)
- func (m *Manager) StarHotList(req StarHotListReq) (res StarHotListRes, err error)
- func (m *Manager) VideoCreate(req VideoCreateReq) (res VideoCreateRes, err error)
- func (m *Manager) VideoData(req VideoDataReq) (res VideoDataRes, err error)
- func (m *Manager) VideoDelete(req VideoDeleteReq) (res VideoDeleteRes, err error)
- func (m *Manager) VideoList(req VideoListReq) (res VideoListRes, err error)
- func (m *Manager) VideoPartUpload(req VideoPartUploadReq) (res *VideoPartUploadRes, err error)
- func (m *Manager) VideoPartUploadInit(req VideoPartUploadInitReq) (res VideoPartUploadInitRes, err error)
- func (m *Manager) VideoSearch(req VideoSearchReq) (res VideoSearchRes, err error)
- func (m *Manager) VideoSearchCommentList(req VideoSearchCommentListReq) (res VideoSearchCommentListRes, err error)
- func (m *Manager) VideoSearchCommentReply(req VideoSearchCommentReplyReq) (res VideoSearchCommentReplyRes, err error)
- func (m *Manager) VideoSearchCommentReplyList(req VideoSearchCommentReplyListReq) (res VideoSearchCommentReplyListRes, err error)
- func (m *Manager) VideoUpload(req VideoUploadReq) (res *VideoUploadRes, err error)
- func (m *Manager) VideoUploadPartComplete(req VideoUploadPartCompleteReq) (res VideoUploadPartCompleteRes, err error)
- func (m *Manager) WebhookSignature(body []byte, sign string) bool
- type MarketServicePurchaseListData
- type MarketServicePurchaseListReq
- type MarketServicePurchaseListRes
- type MarketServicePurchaseListResult
- type OauthAccessTokenReq
- type OauthAccessTokenRes
- type OauthAccessTokenResData
- type OauthClientAccessTokenRes
- type OauthClientAccessTokenResData
- type OauthParam
- type OauthRefreshTokenReq
- type OauthRefreshTokenRes
- type OauthRefreshTokenResData
- type OauthRenewRefreshTokenReq
- type OauthRenewRefreshTokenRes
- type OauthRenewRefreshTokenResData
- type OauthUserinfoReq
- type OauthUserinfoRes
- type OauthUserinfoResData
- type OpenSignatureReq
- type OpenTicketData
- type OpenTicketReq
- type OpenTicketRes
- type Poi
- type PoiSearchKeywordData
- type PoiSearchKeywordReq
- type PoiSearchKeywordRes
- type ShareSchemaReq
- type StarAuthorScoreData
- type StarAuthorScoreReq
- type StarAuthorScoreRes
- type StarAuthorScoreV2Req
- type StarAuthorScoreV2Res
- type StarHotList
- type StarHotListData
- type StarHotListReq
- type StarHotListRes
- type Statistics
- type Video
- type VideoCreateBody
- type VideoCreateReq
- type VideoCreateRes
- type VideoCreateResData
- type VideoDataBody
- type VideoDataReq
- type VideoDataRes
- type VideoDataResData
- type VideoDeleteBody
- type VideoDeleteReq
- type VideoDeleteRes
- type VideoDeleteResData
- type VideoListReq
- type VideoListRes
- type VideoListResData
- type VideoPartUploadData
- type VideoPartUploadInitReq
- type VideoPartUploadInitRes
- type VideoPartUploadInitResData
- type VideoPartUploadReq
- type VideoPartUploadRes
- type VideoSearchCommentListData
- type VideoSearchCommentListReq
- type VideoSearchCommentListRes
- type VideoSearchCommentReplyBody
- type VideoSearchCommentReplyData
- type VideoSearchCommentReplyListData
- type VideoSearchCommentReplyListReq
- type VideoSearchCommentReplyListRes
- type VideoSearchCommentReplyReq
- type VideoSearchCommentReplyRes
- type VideoSearchData
- type VideoSearchReq
- type VideoSearchRes
- type VideoSearchResult
- type VideoUploadPartCompleteReq
- type VideoUploadPartCompleteRes
- type VideoUploadReq
- type VideoUploadRes
- type VideoUploadResData
- type VideoUploadResVideo
- type WebhookContent
- type WebhookEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentials ¶
func NewCredentials(clientKey, clientSecret string) *auth.Credentials
NewCredentials 获取认证
Types ¶
type ConfigSignReq ¶
type ConfigSignReq struct {
JsTicket string
Timestamp int64 // 时间戳
NonceStr string // 生成签名用的随机字符串
Url string // 为应用申请的JSB安全域名,需要携带协议。
}
ConfigSignReq 验证签名请求
type DDataExternalItemBaseData ¶
type DDataExternalItemBaseData struct {
Result DataExternalItemBase `json:"result"` // 视频基础数据
DYError
}
DDataExternalItemBaseData 视频基础数据
type DYError ¶
type DYError struct {
ErrorCode int64 `json:"error_code,omitempty"` // 错误码
Description string `json:"description,omitempty"` // 错误码描述
}
DYError 错误结构体
type DYExtra ¶
type DYExtra struct {
LogId string `json:"logid"` // 标识请求的唯一id
Now uint64 `json:"now"` // 毫秒级时间戳
SubDescrition string `json:"sub_description,omitempty"` // 子错误码描述
SubErrorCode int64 `json:"sub_error_code,omitempty"` // 子错误码
DYError
}
DYExtra 响应结构体
type DataExternalBillboardData ¶
type DataExternalBillboardData struct {
List []DataExternalBillboardItem `json:"list"`
DYError
}
DataExternalBillboardData 榜单数据
type DataExternalBillboardHotVideoData ¶
type DataExternalBillboardHotVideoData struct {
List []DataExternalBillboardHotVideoItem `json:"list"`
DYError
}
DataExternalBillboardHotVideoData 热门视频数据
type DataExternalBillboardHotVideoItem ¶
type DataExternalBillboardHotVideoItem struct {
Rank int32 `json:"rank"` // 排名
Title string `json:"title"` // 视频标题
Author string `json:"author"` // 视频发布者
PlayCount int64 `json:"play_count"` // 播放数,离线数据(统计前一日数据)
DiggCount int64 `json:"digg_count"` // 点赞数,离线数据(统计前一日数据)
CommentCount int64 `json:"comment_count"` // 评论数,离线数据(统计前一日数据)
HotWords string `json:"hot_words"` // 视频热词(以,隔开)
HotValue float64 `json:"hot_value"` // 热度指数
ItemCover string `json:"item_cover"` // 视频封面图
}
DataExternalBillboardHotVideoItem 热门视频数据
type DataExternalBillboardHotVideoReq ¶
type DataExternalBillboardHotVideoReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
DataExternalBillboardHotVideoReq 热门视频数据请求
type DataExternalBillboardHotVideoRes ¶
type DataExternalBillboardHotVideoRes struct {
Data DataExternalBillboardHotVideoData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalBillboardHotVideoRes 热门视频数据
type DataExternalBillboardItem ¶
type DataExternalBillboardItem struct {
Rank int32 `json:"rank"` // 排名
RankChange string `json:"rank_change,omitempty"` // 排名变化, 如果上一期未上榜用-表示
Nickname string `json:"nickname,omitempty"` // 昵称
Title string `json:"title,omitempty"` // 话题标题
Avatar string `json:"avatar,omitempty"` // 头像
FollowerCount int64 `json:"follower_count,omitempty"` // 粉丝数
OnbillbaordTimes int32 `json:"onbillbaord_times,omitempty"` // 近一月在榜次数
EffectValue float64 `json:"effect_value"` // 影响力指数
VideoList []DataExternalBillboardItemVideo `json:"video_list,omitempty"` // 视频列表
}
DataExternalBillboardItem 榜单数据
type DataExternalBillboardItemVideo ¶
type DataExternalBillboardItemVideo struct {
Title string `json:"title"` // 视频标题
ItemCover string `json:"item_cover"` // 视频封面图
}
DataExternalBillboardItemVideo 榜单数据
type DataExternalBillboardLiveData ¶
type DataExternalBillboardLiveData struct {
List []DataExternalBillboardLiveItem `json:"list"`
DYError
}
DataExternalBillboardLiveData 直播榜数据
type DataExternalBillboardLiveItem ¶
type DataExternalBillboardLiveItem struct {
Rank int32 `json:"rank"` // 排名
Cover string `json:"cover"` // 直播封面
Title string `json:"title"` // 直播标题
Nickname string `json:"nickname"` // 昵称
HotValue float64 `json:"hot_value"` // 热度指数
}
DataExternalBillboardLiveItem 直播榜数据
type DataExternalBillboardLiveReq ¶
type DataExternalBillboardLiveReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
DataExternalBillboardLiveReq 直播榜数据请求
type DataExternalBillboardLiveRes ¶
type DataExternalBillboardLiveRes struct {
Data DataExternalBillboardLiveData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalBillboardLiveRes 直播榜数据
type DataExternalBillboardMusicData ¶
type DataExternalBillboardMusicData struct {
List []DataExternalBillboardMusicItem `json:"list"`
DYError
}
DataExternalBillboardMusicData 音乐榜单数据
type DataExternalBillboardMusicItem ¶
type DataExternalBillboardMusicItem struct {
Rank int32 `json:"rank"` // 排名
Cover string `json:"cover"` // 音乐封面
Title string `json:"title"` // 歌曲标题
Duration int32 `json:"duration"` // 时长,精确到秒
Author string `json:"author"` // 作者昵称
UseCount int64 `json:"use_count"` // 使用量
}
DataExternalBillboardMusicItem 音乐榜单数据
type DataExternalBillboardMusicReq ¶
type DataExternalBillboardMusicReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Uri string
}
DataExternalBillboardMusicReq 音乐榜单数据请求
type DataExternalBillboardMusicRes ¶
type DataExternalBillboardMusicRes struct {
Data DataExternalBillboardMusicData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalBillboardMusicRes 音乐榜单数据
type DataExternalBillboardPropData ¶
type DataExternalBillboardPropData struct {
List []DataExternalBillboardPropItem `json:"list"`
DYError
}
DataExternalBillboardPropData 道具榜单数据
type DataExternalBillboardPropItem ¶
type DataExternalBillboardPropItem struct {
Rank int32 `json:"rank"` // 排名
RankChange string `json:"rank_change"` // 排名变化
Name string `json:"name"` // 道具名
ShowCnt float64 `json:"show_cnt"` // 展现量,离线数据(统计前一日数据)
ShootCnt float64 `json:"shoot_cnt"` // 开拍量,离线数据(统计前一日数据)
DailyIssueCnt float64 `json:"daily_issue_cnt"` // 日投稿量,离线数据(统计前一日数据)
DailyIssuePercent string `json:"daily_issue_percent"` // 日投稿占比,格式:XX.XX% 精确小数点后2位 离线数据(统计前一日数据)
DailyCollectionCnt float64 `json:"daily_collection_cnt"` // 日收藏数,离线数据(统计前一日数据)
DailyPlayCnt float64 `json:"daily_play_cnt"` // 日播放数,离线数据(统计前一日数据)
EffectValue float64 `json:"effect_value"` // 影响力指数
}
DataExternalBillboardPropItem 道具榜单数据
type DataExternalBillboardPropReq ¶
type DataExternalBillboardPropReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
DataExternalBillboardPropReq 道具榜单数据请求
type DataExternalBillboardPropRes ¶
type DataExternalBillboardPropRes struct {
Data DataExternalBillboardPropData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalBillboardPropRes 道具榜单数据
type DataExternalBillboardReq ¶
type DataExternalBillboardReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Uri string
}
DataExternalBillboardReq 榜单数据请求
type DataExternalBillboardRes ¶
type DataExternalBillboardRes struct {
Data DataExternalBillboardData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalBillboardRes 榜单数据
type DataExternalFansCommentData ¶
type DataExternalFansCommentData struct {
List []DataExternalFansCommentItem `json:"list,omitempty"`
DYError
}
DataExternalFansCommentData 用户粉丝热评
type DataExternalFansCommentItem ¶
type DataExternalFansCommentItem struct {
Rank int32 `json:"rank"` // 排名
Keyword string `json:"keyword"` // 关键词
HotValue int64 `json:"hot_value"` // 热度指数
}
DataExternalFansCommentItem 用户粉丝热评
type DataExternalFansCommentReq ¶
type DataExternalFansCommentReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
DataExternalFansCommentReq 用户粉丝热评
type DataExternalFansCommentRes ¶
type DataExternalFansCommentRes struct {
Data DataExternalFansCommentData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalFansCommentRes 用户粉丝热评
type DataExternalFansFavouriteData ¶
type DataExternalFansFavouriteData struct {
List []DataExternalFansFavouriteItem `json:"list,omitempty"`
DYError
}
DataExternalFansFavouriteData 用户粉丝喜好
type DataExternalFansFavouriteItem ¶
type DataExternalFansFavouriteItem struct {
Rank int32 `json:"rank"` // 排名
Keyword string `json:"keyword"` // 关键词
HotValue int64 `json:"hot_value"` // 热度指数
}
DataExternalFansFavouriteItem 用户粉丝喜好
type DataExternalFansFavouriteReq ¶
type DataExternalFansFavouriteReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
DataExternalFansFavouriteReq 用户粉丝喜好请求
type DataExternalFansFavouriteRes ¶
type DataExternalFansFavouriteRes struct {
Data DataExternalFansFavouriteData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalFansFavouriteRes 用户粉丝喜好
type DataExternalFansSourceData ¶
type DataExternalFansSourceData struct {
List []DataExternalFansSourceItem `json:"list,omitempty"`
DYError
}
DataExternalFansSourceData 用户粉丝来源分布
type DataExternalFansSourceItem ¶
type DataExternalFansSourceItem struct {
Source string `json:"source"` // 粉丝来源
Percent string `json:"percent"` // 来源占比,格式:XX.XX% 精确小数点后2位
}
DataExternalFansSourceItem 用户粉丝来源分布
type DataExternalFansSourceReq ¶
type DataExternalFansSourceReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
DataExternalFansSourceReq 用户粉丝来源分布请求
type DataExternalFansSourceRes ¶
type DataExternalFansSourceRes struct {
Data DataExternalFansSourceData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalFansSourceRes 用户粉丝来源分布
type DataExternalItemBase ¶
type DataExternalItemBase struct {
AvgPlayDuration float64 `json:"avg_play_duration"` // 30天平均播放时长
TotalComment int64 `json:"total_comment"` // 30天评论数
TotalLike int64 `json:"total_like"` // 30天点赞数
TotalPlay int64 `json:"total_play"` // 30天播放次数
}
DataExternalItemBase 视频基础数据
type DataExternalItemBaseReq ¶
type DataExternalItemBaseReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
ItemId string // item_id,仅能查询access_token对应用户上传的视频
}
DataExternalItemBaseReq 视频基础数据请求
type DataExternalItemBaseRes ¶
type DataExternalItemBaseRes struct {
Data DDataExternalItemBaseData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalItemBaseRes 视频基础数据
type DataExternalItemComment ¶
type DataExternalItemComment struct {
Date string `json:"date"` // 日期
Comment int64 `json:"comment"` // 每日评论数
}
DataExternalItemComment 视频评论数据
type DataExternalItemCommentData ¶
type DataExternalItemCommentData struct {
ResultList []DataExternalItemComment `json:"result_list"` // 评论数据列表
DYError
}
DataExternalItemCommentData 视频评论数据
type DataExternalItemCommentReq ¶
type DataExternalItemCommentReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
ItemId string // item_id,仅能查询access_token对应用户上传的视频
DateType int64 // 近7/15天;输入7代表7天、15代表15天
}
DataExternalItemCommentReq 视频评论数据
type DataExternalItemCommentRes ¶
type DataExternalItemCommentRes struct {
Data DataExternalItemCommentData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalItemCommentRes 视频评论数据
type DataExternalItemLike ¶
DataExternalItemLike 视频点赞数据
type DataExternalItemLikeData ¶
type DataExternalItemLikeData struct {
ResultList []DataExternalItemLike `json:"result_list"` // 点赞数据列表
DYError
}
DataExternalItemLikeData 视频点赞数据
type DataExternalItemLikeReq ¶
type DataExternalItemLikeReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
ItemId string // item_id,仅能查询access_token对应用户上传的视频
DateType int64 // 近7/15天;输入7代表7天、15代表15天
}
DataExternalItemLikeReq 视频点赞数据请求
type DataExternalItemLikeRes ¶
type DataExternalItemLikeRes struct {
Data DataExternalItemLikeData `json:"data"` // 日期
Extra DYExtra `json:"extra"` // 每日点赞数
}
DataExternalItemLikeRes 视频点赞
type DataExternalItemPlay ¶
type DataExternalItemPlay struct {
Date string `json:"date"` // 日期
Play int64 `json:"play"` // 每日播放数
}
DataExternalItemPlay 视频播放数据
type DataExternalItemPlayData ¶
type DataExternalItemPlayData struct {
ResultList []DataExternalItemPlay `json:"result_list"` // 播放数据列表
DYError
}
DataExternalItemPlayData 视频播放数据
type DataExternalItemPlayReq ¶
type DataExternalItemPlayReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
ItemId string // item_id,仅能查询access_token对应用户上传的视频
DateType int64 // 近7/15天;输入7代表7天、15代表15天
}
DataExternalItemPlayReq 视频播放数据
type DataExternalItemPlayRes ¶
type DataExternalItemPlayRes struct {
Data DataExternalItemPlayData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalItemPlayRes 视频播放数据
type DataExternalItemShareData ¶
type DataExternalItemShareData struct {
}
DataExternalItemShareData 视频分享数据
type DataExternalItemShareReq ¶
type DataExternalItemShareReq struct {
}
DataExternalItemShareReq 视频分享数据请求
type DataExternalItemShareRes ¶
type DataExternalItemShareRes struct {
}
DataExternalItemShareRes 视频分享数据
type DataExternalUserComment ¶
type DataExternalUserComment struct {
Date string `json:"date"`
NewComment int64 `json:"new_comment"`
}
DataExternalUserComment 用户评论数
type DataExternalUserCommentData ¶
type DataExternalUserCommentData struct {
ResultList []DataExternalUserComment `json:"result_list"` // 用户评论数据
DYError
}
DataExternalUserCommentData 用户评论数
type DataExternalUserCommentReq ¶
type DataExternalUserCommentReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
DataType int64 // 近7/15天;输入7代表7天、15代表15天、30代表30天
}
DataExternalUserCommentReq 用户评论数请求
type DataExternalUserCommentRes ¶
type DataExternalUserCommentRes struct {
Data DataExternalUserCommentData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalUserCommentRes 用户评论数
type DataExternalUserFans ¶
type DataExternalUserFans struct {
Date string `json:"date"` // 日期
NewFans int64 `json:"new_fans"` // 每天新粉丝数
TotalFans int64 `json:"total_fans"` // 每日总粉丝数
}
DataExternalUserFans 用户粉丝数
type DataExternalUserFansData ¶
type DataExternalUserFansData struct {
ResultList []DataExternalUserFans `json:"result_list"` // 用户粉丝数据
DYError
}
DataExternalUserFansData 用户粉丝数
type DataExternalUserFansReq ¶
type DataExternalUserFansReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
DataType int64 // 近7/15天;输入7代表7天、15代表15天、30代表30天
}
DataExternalUserFansReq 用户粉丝数请求
type DataExternalUserFansRes ¶
type DataExternalUserFansRes struct {
Data DataExternalUserFansData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalUserFansRes 用户粉丝数
type DataExternalUserItem ¶
type DataExternalUserItem struct {
Date string `json:"date"` // 日期
NewIssue int64 `json:"new_issue"` // 每日发布内容数
NewPlay int64 `json:"new_play"` // 每天新增视频播放
TotalIssue int64 `json:"total_issue"` // 每日内容总数
}
DataExternalUserItem 用户视频情况
type DataExternalUserItemData ¶
type DataExternalUserItemData struct {
ResultList []DataExternalUserItem `json:"result_list"` // 用户视频数据
DYError
}
DataExternalUserItemData 用户视频情况
type DataExternalUserItemReq ¶
type DataExternalUserItemReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
DataType int64 // 近7/15天;输入7代表7天、15代表15天、30代表30天
}
DataExternalUserItemReq 用户视频情况请求
type DataExternalUserItemRes ¶
type DataExternalUserItemRes struct {
Data DataExternalUserItemData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalUserItemRes 用户视频情况
type DataExternalUserLike ¶
type DataExternalUserLike struct {
Date string `json:"date"` // 日期
NewLike int64 `json:"new_like"` // 新增点赞
}
DataExternalUserLike 用户点赞数
type DataExternalUserLikeData ¶
type DataExternalUserLikeData struct {
ResultList []DataExternalUserLike `json:"result_list"` // 用户点赞数据
DYError
}
DataExternalUserLikeData 用户点赞数
type DataExternalUserLikeReq ¶
type DataExternalUserLikeReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权
DataType int64 // 近7/15天;输入7代表7天、15代表15天、30代表30天
}
DataExternalUserLikeReq 用户点赞数请求
type DataExternalUserLikeRes ¶
type DataExternalUserLikeRes struct {
Data DataExternalUserLikeData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalUserLikeRes 用户点赞数
type DataExternalUserProfile ¶
type DataExternalUserProfile struct {
Date string `json:"date"` // 日期
ProfileUV int64 `json:"profile_uv"` // 当日个人主页访问人数
}
DataExternalUserProfile 用户主页访问数
type DataExternalUserProfileData ¶
type DataExternalUserProfileData struct {
ResultList []DataExternalUserProfile `json:"result_list"` // 用户主页访问数据
DYError
}
DataExternalUserProfileData 用户主页访问数
type DataExternalUserProfileReq ¶
type DataExternalUserProfileReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
DataType int64 // 近7/15天;输入7代表7天、15代表15天、30代表30天
}
DataExternalUserProfileReq 用户主页访问数请求
type DataExternalUserProfileRes ¶
type DataExternalUserProfileRes struct {
Data DataExternalUserProfileData `json:"data"`
Extra DYExtra `json:"extra"`
}
DataExternalUserProfileRes 用户主页访问数
type DataExternalUserShareData ¶
type DataExternalUserShareData struct {
}
DataExternalUserShareData 用户分享数
type DataExternalUserShareReq ¶
type DataExternalUserShareReq struct {
}
DataExternalUserShareReq 用户分享数请求
type DataExternalUserShareRes ¶
type DataExternalUserShareRes struct {
}
DataExternalUserShareRes 用户分享数
type DiscoveryEntRankItemData ¶
type DiscoveryEntRankItemData struct {
List []DiscoveryEntRankItemDataAlbum `json:"list"` // 实时热点词
DYError
}
DiscoveryEntRankItemData 抖音电影榜、抖音电视剧榜、抖音综艺榜
type DiscoveryEntRankItemDataAlbum ¶
type DiscoveryEntRankItemDataAlbum struct {
Id string `json:"id"`
MaoyanId string `json:"maoyan_id,omitempty"`
Name string `json:"name"`
NameEn string `json:"name_en,omitempty"`
ReleaseDate string `json:"release_date"`
Directors []string `json:"directors"`
DiscussionHot int64 `json:"discussion_hot"`
Poster string `json:"poster"`
Tags []string `json:"tags,omitempty"`
Type int32 `json:"type"`
Actors []string `json:"actors,omitempty"`
Areas []string `json:"areas,omitempty"`
Hot int64 `json:"hot"`
SearchHot int64 `json:"search_hot"`
InfluenceHot int64 `json:"influence_hot"`
TopicHot int64 `json:"topic_hot"`
}
DiscoveryEntRankItemDataAlbum 抖音电影榜、抖音电视剧榜、抖音综艺榜
type DiscoveryEntRankItemReq ¶
type DiscoveryEntRankItemReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Type int32 // 榜单类型: * 1 - 电影 * 2 - 电视剧 * 3 - 综艺
Version int32 // 榜单版本:空值默认为本周榜单
}
DiscoveryEntRankItemReq 抖音电影榜、抖音电视剧榜、抖音综艺榜请求
type DiscoveryEntRankItemRes ¶
type DiscoveryEntRankItemRes struct {
Data DiscoveryEntRankItemData `json:"data"`
Extra DYExtra `json:"extra"`
}
DiscoveryEntRankItemRes 抖音电影榜、抖音电视剧榜、抖音综艺榜
type DiscoveryEntRankVersionData ¶
type DiscoveryEntRankVersionData struct {
List []DiscoveryEntRankVersionDataVersion `json:"list"` // 榜单版本列表
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"`
DYError
}
DiscoveryEntRankVersionData 抖音影视综榜单版本
type DiscoveryEntRankVersionDataVersion ¶
type DiscoveryEntRankVersionDataVersion struct {
ActiveTime string `json:"active_time"` // 榜单生成时间
EndTime string `json:"end_time"` // 榜单结束时间
StartTime string `json:"start_time"` // 榜单起始时间
Type int32 `json:"type"` // 榜单类型: * 1 - 电影 * 2 - 电视剧 * 3 - 综艺
Version int32 `json:"version"` // 榜单版本
}
DiscoveryEntRankVersionDataVersion 抖音影视综榜单版本
type DiscoveryEntRankVersionReq ¶
type DiscoveryEntRankVersionReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
Type int32 // 榜单类型: * 1 - 电影 * 2 - 电视剧 * 3 - 综艺
}
DiscoveryEntRankVersionReq 抖音影视综榜单版本
type DiscoveryEntRankVersionRes ¶
type DiscoveryEntRankVersionRes struct {
Data DiscoveryEntRankVersionData `json:"data"`
Extra DYExtra `json:"extra"`
}
DiscoveryEntRankVersionRes 抖音影视综榜单版本
type EventStatus ¶
type EventStatus struct {
Event string `json:"event"` // 推送事件名称
Status int64 `json:"status"` // 事件订阅状态 * `0` - 未订阅 * `1` - 已订阅
}
EventStatus 事件订阅状态
type EventStatusListReq ¶
type EventStatusListReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
EventStatusListReq 事件订阅状态请求
type EventStatusListRes ¶
type EventStatusListRes struct {
Data EventStatusListResData `json:"data"`
Extra DYExtra `json:"extra"`
}
EventStatusListRes 事件订阅状态
type EventStatusListResData ¶
type EventStatusListResData struct {
List []EventStatus `json:"list"` // 事件列表
DYError
}
EventStatusListResData 事件订阅状态
type EventStatusUpdateBody ¶
type EventStatusUpdateBody struct {
List []EventStatus `json:"list"` // 更新事件列表
}
EventStatusUpdateBody 事件订阅状态
type EventStatusUpdateReq ¶
type EventStatusUpdateReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Body EventStatusUpdateBody // 更新事件订阅请求body
}
EventStatusUpdateReq 事件订阅状态
type EventStatusUpdateRes ¶
type EventStatusUpdateRes struct {
Data EventStatusUpdateResData `json:"data"`
Extra DYExtra `json:"extra"`
}
EventStatusUpdateRes 事件订阅状态
type EventStatusUpdateResData ¶
type EventStatusUpdateResData struct {
DYError
}
EventStatusUpdateResData 事件订阅状态
type Fans ¶
type Fans struct {
Nickname string `json:"nickname"` // 昵称
Province string `json:"province"` // 省
Avatar string `json:"avatar"` // 头像
City string `json:"city"` // 城市
Country string `json:"country"` // 国家
Gender int64 `json:"gender"` // 性别: * `0` - 未知 * `1` - 男性 * `2` - 女性
OpenId string `json:"open_id"` // 用户在当前应用的唯一标识
UnionId string `json:"union_id"` // 用户在当前开发者账号下的唯一标识(未绑定开发者账号没有该字段)
}
Fans 粉丝列表
type FansCheckData ¶
type FansCheckData struct {
IsFollower bool `json:"is_follower"` // follower_open_id是否关注了open_id
FollowTime int64 `json:"follow_time"` // 若关注了,则返回关注时间。单位为秒级时间戳
DYError
}
FansCheckData 粉丝判断
type FansCheckReq ¶
type FansCheckReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
FollowerOpenId string
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
FansCheckReq 粉丝判断请求
type FansCheckRes ¶
type FansCheckRes struct {
Data FansCheckData `json:"data"`
Extra DYExtra `json:"extra"`
}
FansCheckRes 粉丝判断
type FansDataActiveDaysDistributions ¶
type FansDataActiveDaysDistributions struct {
Item string `json:"item"` // 分布的种类
Value int64 `json:"value"` // 分布的数值
}
FansDataActiveDaysDistributions 用户粉丝数据
type FansDataAgeDistributions ¶
type FansDataAgeDistributions struct {
Item string `json:"item"` // 分布的种类
Value int64 `json:"value"` // 分布的数值
}
FansDataAgeDistributions 用户粉丝数据
type FansDataDetails ¶
type FansDataDetails struct {
ActiveDays []FansDataActiveDaysDistributions `json:"active_days_distributions,omitempty"` // 粉丝活跃天数分布 item: ["0-4","5~8","9~12","13~16","17~20","20+"]
Age []FansDataAgeDistributions `json:"age_distributions,omitempty"` // 粉丝年龄分布 item: ["1-23", "24-30", "31-40", "41-50", "50-"]
Device []FansDataDeviceDistributions `json:"device_distributions,omitempty"` // 粉丝设备分布 item: ["苹果","华为","三星","小米"...]
Flow []FansDataFlowContributions `json:"flow_contributions,omitempty"` // 粉丝流量贡献 flow: ["vv","like_cnt","comment_cnt","share_video_cnt"]
Gender []FansDataGenderDistributions `json:"gender_distributions,omitempty"` // 粉丝性别分布 item: ["1","2"] (男:1,女:2)
Geographical []FansDataGeographicalDistributions `json:"geographical_distributions,omitempty"` // 粉丝地域分布 item: ["北京","福建","香港"...]
Interest []FansDataInterestDistributions `json:"interest_distributions,omitempty"` // 粉丝兴趣分布 item: ["生活"","美食","旅行"...]
AllFansNum int64 `json:"all_fans_num,omitempty"` // 所有粉丝的数量
}
FansDataDetails 用户粉丝数据
type FansDataDeviceDistributions ¶
type FansDataDeviceDistributions struct {
Item string `json:"item"` // 分布的种类
Value int64 `json:"value"` // 分布的数值
}
FansDataDeviceDistributions 用户粉丝数据
type FansDataFlowContributions ¶
type FansDataFlowContributions struct {
AllSum int64 `json:"all_sum"` // 总流量贡献
FansSum int64 `json:"fans_sum"` // 粉丝流量贡献
Flow string `json:"flow"` // 总流量贡献
}
FansDataFlowContributions 用户粉丝数据
type FansDataGenderDistributions ¶
type FansDataGenderDistributions struct {
Item string `json:"item"` // 分布的种类
Value int64 `json:"value"` // 分布的数值
}
FansDataGenderDistributions 用户粉丝数据
type FansDataGeographicalDistributions ¶
type FansDataGeographicalDistributions struct {
Item string `json:"item"` // 分布的种类
Value int64 `json:"value"` // 分布的数值
}
FansDataGeographicalDistributions 用户粉丝数据
type FansDataInterestDistributions ¶
type FansDataInterestDistributions struct {
Item string `json:"item"` // 分布的种类
Value int64 `json:"value"` // 分布的数值
}
FansDataInterestDistributions 用户粉丝数据
type FansDataList ¶
type FansDataList struct {
Details FansDataDetails `json:"fans_data,omitempty"`
DYError
}
FansDataList 用户粉丝数据
type FansDataReq ¶
type FansDataReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
FansDataReq 用户粉丝数据请求
type FansDataRes ¶
type FansDataRes struct {
Data FansDataList `json:"data"`
Extra DYExtra `json:"extra"`
}
FansDataRes 用户粉丝数据
type FansListData ¶
type FansListData struct {
List []Fans `json:"list"` // 粉丝列表
Total int64 `json:"total"` // 粉丝总数
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
FansListData 粉丝列表
type FansListReq ¶
type FansListReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
}
FansListReq 粉丝列表请求
type FansListRes ¶
type FansListRes struct {
Data FansListData `json:"data"`
Extra DYExtra `json:"extra"`
}
FansListRes 粉丝列表
type Following ¶
type Following struct {
Nickname string `json:"nickname"` // 昵称
Province string `json:"province"` // 省
Avatar string `json:"avatar"` // 头像
City string `json:"city"` // 城市
Country string `json:"country"` // 国家
Gender int64 `json:"gender"` // 性别: * `0` - 未知 * `1` - 男性 * `2` - 女性
OpenId string `json:"open_id"` // 用户在当前应用的唯一标识
UnionId string `json:"union_id"` // 用户在当前开发者账号下的唯一标识(未绑定开发者账号没有该字段)
}
Following 关注列表
type FollowingListData ¶
type FollowingListData struct {
List []Following `json:"list"` // 关注列表
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
FollowingListData 关注列表
type FollowingListReq ¶
type FollowingListReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
}
FollowingListReq 关注列表请求
type FollowingListRes ¶
type FollowingListRes struct {
Data FollowingListData `json:"data"`
Extra DYExtra `json:"extra"`
}
FollowingListRes 关注列表
type HotSearchSentence ¶
type HotSearchSentence struct {
HotLevel int64 `json:"hot_level"` // 热度 综合点赞、评论、转发等计算得出
Sentence string `json:"sentence"` // 热点词
}
HotSearchSentence 实时热点词
type HotSearchSentencesData ¶
type HotSearchSentencesData struct {
ActiveTime string `json:"active_time"` // 刷新时间
List []HotSearchSentence `json:"list"` // 实时热点词
DYError
}
HotSearchSentencesData 实时热点词
type HotSearchSentencesReq ¶
type HotSearchSentencesReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
HotSearchSentencesReq 实时热点词请求
type HotSearchSentencesRes ¶
type HotSearchSentencesRes struct {
Data HotSearchSentencesData `json:"data"`
Extra DYExtra `json:"extra"`
}
HotSearchSentencesRes 实时热点词
type HotSearchTrendingSentence ¶
type HotSearchTrendingSentence struct {
HotLevel int64 `json:"hot_level"` // 热度 综合点赞、评论、转发等计算得出
Sentence string `json:"sentence"` // 热点词
Label int64 `json:"label"` // 标签: * `0` - 无 * `1` - 新 * `2` - 推荐 * `3` - 热 * `4` - 爆 * `5` - 首发
}
HotSearchTrendingSentence 上升词
type HotSearchTrendingSentencesData ¶
type HotSearchTrendingSentencesData struct {
List []HotSearchTrendingSentence `json:"list"` // 实时热点词
Total int32 `json:"total"` // 总数
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
HotSearchTrendingSentencesData 上升词
type HotSearchTrendingSentencesReq ¶
type HotSearchTrendingSentencesReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
}
HotSearchTrendingSentencesReq 上升词请求
type HotSearchTrendingSentencesRes ¶
type HotSearchTrendingSentencesRes struct {
Data HotSearchTrendingSentencesData `json:"data"`
Extra DYExtra `json:"extra"`
}
HotSearchTrendingSentencesRes 上升词
type HotSearchVideosData ¶
HotSearchVideosData 热点词聚合的视频
type HotSearchVideosReq ¶
type HotSearchVideosReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
HotSentence string // 热点词
}
HotSearchVideosReq 热点词聚合的视频请求
type HotSearchVideosRes ¶
type HotSearchVideosRes struct {
Data HotSearchVideosData `json:"data"`
Extra DYExtra `json:"extra"`
}
HotSearchVideosRes 热点词聚合的视频
type ImageCreateBody ¶
type ImageCreateBody struct {
PoiId string `json:"poi_id,omitempty"` // 地理位置id
PoiName string `json:"poi_name,omitempty"` // 地理位置名称
Text string `json:"text,omitempty"` // 标题,可以带话题。 如title1#话题1 #话题2 注意:话题审核依旧遵循抖音的审核逻辑,强烈建议第三方谨慎拟定话题名称,避免强导流行为。
MicroAppId string `json:"micro_app_id,omitempty"` // 小程序id
MicroAppTitle string `json:"micro_app_title,omitempty"` // 小程序标题
MicroAppUrl string `json:"micro_app_url,omitempty"` // 吊起小程序时的参数
ImageId string `json:"image_id"` // 通过/image/upload/接口得到。
AtUsers []string `json:"at_users,omitempty"` // 如果需要at其他用户。将text中@nickname对应的open_id放到这里。
}
ImageCreateBody 发布图片
type ImageCreateReq ¶
type ImageCreateReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Body ImageCreateBody // 请求body
}
ImageCreateReq 发布图片请求
type ImageCreateRes ¶
type ImageCreateRes struct {
Data ImageCreateResData `json:"data"`
Extra DYExtra `json:"extra"`
}
ImageCreateRes 发布图片
type ImageCreateResData ¶
ImageCreateResData 发布图片
type ImageUploadReq ¶
type ImageUploadReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
FilePath string // 文件路径
}
ImageUploadReq 上传图片到文件服务器请求
type ImageUploadRes ¶
type ImageUploadRes struct {
Data ImageUploadResData `json:"data"`
Extra DYExtra `json:"extra"`
}
ImageUploadRes 上传图片到文件服务器
type ImageUploadResData ¶
type ImageUploadResData struct {
Image ImageUploadResImage `json:"image,omitempty"`
DYError
}
ImageUploadResData 上传图片到文件服务器
type ImageUploadResImage ¶
type ImageUploadResImage struct {
Height int64 `json:"height"` // 图片高度
Width int64 `json:"width"` // 图片宽度
ImageId string `json:"image_id"` // 图片id
}
ImageUploadResImage 上传图片到文件服务器
type ItemComment ¶
type ItemComment struct {
ReplyCommentTotal int32 `json:"reply_comment_total"` // 回复评论数
Top bool `json:"top"` // 是否置顶评论
CommentId string `json:"comment_id"` // 评论id
CommentUserId string `json:"comment_user_id"` // 评论用户id
Content string `json:"content"` // 评论内容
CreateTime int64 `json:"create_time"` // 时间戳
DiggCount int32 `json:"digg_count"` // 点赞数
}
ItemComment 评论列表
type ItemCommentListData ¶
type ItemCommentListData struct {
List []ItemComment `json:"list"` // 评论列表
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
ItemCommentListData 评论列表
type ItemCommentListReq ¶
type ItemCommentListReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
ItemId string // 视频id
}
ItemCommentListReq 评论列表请求
type ItemCommentListRes ¶
type ItemCommentListRes struct {
Data ItemCommentListData `json:"data"`
Extra DYExtra `json:"extra"`
}
ItemCommentListRes 评论列表
type ItemCommentReplyBody ¶
type ItemCommentReplyBody struct {
CommentId string `json:"comment_id,omitempty"` // 需要回复的评论id(如果需要回复的是视频不传此字段)
Content string `json:"content"` // 评论内容
ItemId string `json:"item_id"` // 视频id
}
ItemCommentReplyBody 回复视频评论
type ItemCommentReplyData ¶
ItemCommentReplyData 回复视频评论
type ItemCommentReplyListData ¶
type ItemCommentReplyListData struct {
List []ItemComment `json:"list"` // 评论回复列表
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
ItemCommentReplyListData 评论回复列表
type ItemCommentReplyListReq ¶
type ItemCommentReplyListReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
ItemId string // 视频id
CommentId string // 评论id
}
ItemCommentReplyListReq 评论回复列表请求
type ItemCommentReplyListRes ¶
type ItemCommentReplyListRes struct {
Data ItemCommentReplyListData `json:"data"`
Extra DYExtra `json:"extra"`
}
ItemCommentReplyListRes 评论回复列表
type ItemCommentReplyReq ¶
type ItemCommentReplyReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Body ItemCommentReplyBody // 回复视频评论body
}
ItemCommentReplyReq 回复视频评论请求
type ItemCommentReplyRes ¶
type ItemCommentReplyRes struct {
Data ItemCommentReplyData `json:"data"`
Extra DYExtra `json:"extra"`
Message string `json:"message"`
}
ItemCommentReplyRes 回复视频评论
type JsTicketData ¶
type JsTicketData struct {
ExpiresIn int64 `json:"expires_in"` // access_token接口调用凭证超时时间,单位(秒)
Ticket string `json:"ticket"` // js接口调用凭证
DYError
}
JsTicketData jsapi_ticket
type JsTicketReq ¶
type JsTicketReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
JsTicketReq jsapi_ticket请求
type JsTicketRes ¶
type JsTicketRes struct {
Data JsTicketData `json:"data"`
Extra DYExtra `json:"extra"`
}
JsTicketRes jsapi_ticket
type Manager ¶
type Manager struct {
Credentials *auth.Credentials
// contains filtered or unexported fields
}
Manager Manager结构体
func NewManager ¶
func NewManager(credentials *auth.Credentials, tr http.RoundTripper) *Manager
NewManager 创建新的Manager
func (*Manager) AwemeShare ¶
func (m *Manager) AwemeShare(req AwemeShareReq) (res AwemeShareRes, err error)
AwemeShare 获取share-id
func (*Manager) DataExternalBillboard ¶
func (m *Manager) DataExternalBillboard(req DataExternalBillboardReq) (res DataExternalBillboardRes, err error)
DataExternalBillboard 获取榜单数据
func (*Manager) DataExternalBillboardHotVideo ¶
func (m *Manager) DataExternalBillboardHotVideo(req DataExternalBillboardHotVideoReq) (res DataExternalBillboardHotVideoRes, err error)
DataExternalBillboardHotVideo 获取热门视频数据
func (*Manager) DataExternalBillboardLive ¶
func (m *Manager) DataExternalBillboardLive(req DataExternalBillboardLiveReq) (res DataExternalBillboardLiveRes, err error)
DataExternalBillboardLive 获取直播榜数据
func (*Manager) DataExternalBillboardMusic ¶
func (m *Manager) DataExternalBillboardMusic(req DataExternalBillboardMusicReq) (res DataExternalBillboardMusicRes, err error)
DataExternalBillboardMusic 获取音乐榜单数据
func (*Manager) DataExternalBillboardProp ¶
func (m *Manager) DataExternalBillboardProp(req DataExternalBillboardPropReq) (res DataExternalBillboardPropRes, err error)
DataExternalBillboardProp 获取道具榜单数据
func (*Manager) DataExternalFansComment ¶
func (m *Manager) DataExternalFansComment(req DataExternalFansCommentReq) (res DataExternalFansCommentRes, err error)
DataExternalFansComment 获取用户粉丝热评
func (*Manager) DataExternalFansFavourite ¶
func (m *Manager) DataExternalFansFavourite(req DataExternalFansFavouriteReq) (res DataExternalFansFavouriteRes, err error)
DataExternalFansFavourite 获取用户粉丝喜好
func (*Manager) DataExternalFansSource ¶
func (m *Manager) DataExternalFansSource(req DataExternalFansSourceReq) (res DataExternalFansSourceRes, err error)
DataExternalFansSource 获取用户粉丝来源分布
func (*Manager) DataExternalItemBase ¶
func (m *Manager) DataExternalItemBase(req DataExternalItemBaseReq) (res DataExternalItemBaseRes, err error)
DataExternalItemBase 获取视频基础数据
func (*Manager) DataExternalItemComment ¶
func (m *Manager) DataExternalItemComment(req DataExternalItemCommentReq) (res DataExternalItemCommentRes, err error)
DataExternalItemComment 获取视频评论数据
func (*Manager) DataExternalItemLike ¶
func (m *Manager) DataExternalItemLike(req DataExternalItemLikeReq) (res DataExternalItemLikeRes, err error)
DataExternalItemLike 获取视频点赞数据
func (*Manager) DataExternalItemPlay ¶
func (m *Manager) DataExternalItemPlay(req DataExternalItemPlayReq) (res DataExternalItemPlayRes, err error)
DataExternalItemPlay 获取视频播放数据
func (*Manager) DataExternalItemShare ¶
func (m *Manager) DataExternalItemShare(req DataExternalItemShareReq) (res DataExternalItemShareRes, err error)
DataExternalItemShare 获取视频分享数据
func (*Manager) DataExternalUserComment ¶
func (m *Manager) DataExternalUserComment(req DataExternalUserCommentReq) (res DataExternalUserCommentRes, err error)
DataExternalUserComment 获取用户评论数
func (*Manager) DataExternalUserFans ¶
func (m *Manager) DataExternalUserFans(req DataExternalUserFansReq) (res DataExternalUserFansRes, err error)
DataExternalUserFans 获取用户粉丝数
func (*Manager) DataExternalUserItem ¶
func (m *Manager) DataExternalUserItem(req DataExternalUserItemReq) (res DataExternalUserItemRes, err error)
DataExternalUserItem 获取用户视频情况
func (*Manager) DataExternalUserLike ¶
func (m *Manager) DataExternalUserLike(req DataExternalUserLikeReq) (res DataExternalUserLikeRes, err error)
DataExternalUserLike 获取用户点赞数
func (*Manager) DataExternalUserProfile ¶
func (m *Manager) DataExternalUserProfile(req DataExternalUserProfileReq) (res DataExternalUserProfileRes, err error)
DataExternalUserProfile 获取用户主页访问数
func (*Manager) DataExternalUserShare ¶
func (m *Manager) DataExternalUserShare(req DataExternalUserShareReq) (res DataExternalUserShareRes, err error)
DataExternalUserShare 获取用户分享数
func (*Manager) DecryptMobile ¶
DecryptMobile 解密用户手机号
func (*Manager) DiscoveryEntRankItem ¶
func (m *Manager) DiscoveryEntRankItem(req DiscoveryEntRankItemReq) (res DiscoveryEntRankItemRes, err error)
DiscoveryEntRankItem 获取抖音电影榜、抖音电视剧榜、抖音综艺榜
func (*Manager) DiscoveryEntRankVersion ¶
func (m *Manager) DiscoveryEntRankVersion(req DiscoveryEntRankVersionReq) (res DiscoveryEntRankVersionRes, err error)
DiscoveryEntRankVersion 获取抖音影视综榜单版本
func (*Manager) EventStatusList ¶
func (m *Manager) EventStatusList(req EventStatusListReq) (res EventStatusListRes, err error)
EventStatusList 获取事件订阅状态
func (*Manager) EventStatusUpdate ¶
func (m *Manager) EventStatusUpdate(req EventStatusUpdateReq) (res EventStatusUpdateRes, err error)
EventStatusUpdate 更新应用推送事件订阅状态
func (*Manager) FansCheck ¶
func (m *Manager) FansCheck(req FansCheckReq) (res FansCheckRes, err error)
FansCheck 获取粉丝判断
func (*Manager) FansData ¶
func (m *Manager) FansData(req FansDataReq) (res FansDataRes, err error)
FansData 获取用户粉丝数据(用户首次授权应用后,需要间隔2天才会产生全部的数据;并只提供粉丝大于100的用户数据。)
func (*Manager) FansList ¶
func (m *Manager) FansList(req FansListReq) (res FansListRes, err error)
FansList 获取粉丝列表
func (*Manager) FollowingList ¶
func (m *Manager) FollowingList(req FollowingListReq) (res FollowingListRes, err error)
FollowingList 获取关注列表
func (*Manager) HotSearchSentences ¶
func (m *Manager) HotSearchSentences(req HotSearchSentencesReq) (res HotSearchSentencesRes, err error)
HotSearchSentences 获取实时热点词
func (*Manager) HotSearchTrendingSentences ¶
func (m *Manager) HotSearchTrendingSentences(req HotSearchTrendingSentencesReq) (res HotSearchTrendingSentencesRes, err error)
HotSearchTrendingSentences 获取上升词
func (*Manager) HotSearchVideos ¶
func (m *Manager) HotSearchVideos(req HotSearchVideosReq) (res HotSearchVideosRes, err error)
HotSearchVideos 获取热点词聚合的视频
func (*Manager) ImageCreate ¶
func (m *Manager) ImageCreate(req ImageCreateReq) (res *ImageCreateRes, err error)
ImageCreate 发布图片
func (*Manager) ImageUpload ¶
func (m *Manager) ImageUpload(req ImageUploadReq) (res *ImageUploadRes, err error)
ImageUpload 上传图片到文件服务器
func (*Manager) ItemCommentList ¶
func (m *Manager) ItemCommentList(req ItemCommentListReq) (res ItemCommentListRes, err error)
ItemCommentList 获取评论列表
func (*Manager) ItemCommentReply ¶
func (m *Manager) ItemCommentReply(req ItemCommentReplyReq) (res ItemCommentReplyRes, err error)
ItemCommentReply 回复视频评论
func (*Manager) ItemCommentReplyList ¶
func (m *Manager) ItemCommentReplyList(req ItemCommentReplyListReq) (res ItemCommentReplyListRes, err error)
ItemCommentReplyList 获取评论回复列表
func (*Manager) JsConfigSignature ¶
func (m *Manager) JsConfigSignature(req ConfigSignReq) string
JsConfigSignature 通过config方法验证签名
func (*Manager) JsTicket ¶
func (m *Manager) JsTicket(req JsTicketReq) (res JsTicketRes, err error)
JsTicket 获取jsapi_ticket
func (*Manager) MarketServicePurchaseList ¶
func (m *Manager) MarketServicePurchaseList(req MarketServicePurchaseListReq) (res MarketServicePurchaseListRes, err error)
MarketServicePurchaseList 查询用户的服务购买信息
func (*Manager) OauthAccessToken ¶
func (m *Manager) OauthAccessToken(req OauthAccessTokenReq) (res OauthAccessTokenRes, err error)
OauthAccessToken 获取access_token
func (*Manager) OauthClientAccessToken ¶
func (m *Manager) OauthClientAccessToken() (res OauthClientAccessTokenRes, err error)
OauthClientAccessToken 生成client_token
func (*Manager) OauthConnect ¶
func (m *Manager) OauthConnect(param OauthParam) string
OauthConnect 生成授权链接,获取授权码
func (*Manager) OauthRefreshToken ¶
func (m *Manager) OauthRefreshToken(req OauthRefreshTokenReq) (res OauthRefreshTokenRes, err error)
OauthRefreshToken 刷新access_token
func (*Manager) OauthRenewRefreshToken ¶
func (m *Manager) OauthRenewRefreshToken(req OauthRenewRefreshTokenReq) (res OauthRenewRefreshTokenRes, err error)
OauthRenewRefreshToken 刷新refresh_token
func (*Manager) OauthUserinfo ¶
func (m *Manager) OauthUserinfo(req OauthUserinfoReq) (res *OauthUserinfoRes, err error)
OauthUserinfo 获取用户信息
func (*Manager) OpenSignature ¶
func (m *Manager) OpenSignature(req OpenSignatureReq) string
OpenSignature 验证签名
func (*Manager) OpenTicket ¶
func (m *Manager) OpenTicket(req OpenTicketReq) (res OpenTicketRes, err error)
OpenTicket 获取open_ticket
func (*Manager) PoiSearchKeyword ¶
func (m *Manager) PoiSearchKeyword(req PoiSearchKeywordReq) (res PoiSearchKeywordRes, err error)
PoiSearchKeyword 查询POI信息
func (*Manager) ShareSchema ¶
func (m *Manager) ShareSchema(req ShareSchemaReq) (string, error)
ShareSchema H5分享Schema
func (*Manager) StarAuthorScore ¶
func (m *Manager) StarAuthorScore(req StarAuthorScoreReq) (res StarAuthorScoreRes, err error)
StarAuthorScore 获取抖音星图达人指数
func (*Manager) StarAuthorScoreV2 ¶
func (m *Manager) StarAuthorScoreV2(req StarAuthorScoreV2Req) (res StarAuthorScoreV2Res, err error)
StarAuthorScoreV2 获取抖音星图达人指数数据V2
func (*Manager) StarHotList ¶
func (m *Manager) StarHotList(req StarHotListReq) (res StarHotListRes, err error)
StarHotList 获取抖音星图达人热榜
func (*Manager) VideoCreate ¶
func (m *Manager) VideoCreate(req VideoCreateReq) (res VideoCreateRes, err error)
VideoCreate 创建抖音视频
func (*Manager) VideoData ¶
func (m *Manager) VideoData(req VideoDataReq) (res VideoDataRes, err error)
VideoData 查询指定视频数据
func (*Manager) VideoDelete ¶
func (m *Manager) VideoDelete(req VideoDeleteReq) (res VideoDeleteRes, err error)
VideoDelete 删除授权用户发布的视频
func (*Manager) VideoList ¶
func (m *Manager) VideoList(req VideoListReq) (res VideoListRes, err error)
VideoList 查询授权账号视频数据
func (*Manager) VideoPartUpload ¶
func (m *Manager) VideoPartUpload(req VideoPartUploadReq) (res *VideoPartUploadRes, err error)
VideoPartUpload 上传视频分片到文件服务器
func (*Manager) VideoPartUploadInit ¶
func (m *Manager) VideoPartUploadInit(req VideoPartUploadInitReq) (res VideoPartUploadInitRes, err error)
VideoPartUploadInit 初始化分片上传
func (*Manager) VideoSearch ¶
func (m *Manager) VideoSearch(req VideoSearchReq) (res VideoSearchRes, err error)
VideoSearch 关键词视频搜索
func (*Manager) VideoSearchCommentList ¶
func (m *Manager) VideoSearchCommentList(req VideoSearchCommentListReq) (res VideoSearchCommentListRes, err error)
VideoSearchCommentList 关键词视频评论列表
func (*Manager) VideoSearchCommentReply ¶
func (m *Manager) VideoSearchCommentReply(req VideoSearchCommentReplyReq) (res VideoSearchCommentReplyRes, err error)
VideoSearchCommentReply 关键词视频评论回复
func (*Manager) VideoSearchCommentReplyList ¶
func (m *Manager) VideoSearchCommentReplyList(req VideoSearchCommentReplyListReq) (res VideoSearchCommentReplyListRes, err error)
VideoSearchCommentReplyList 关键词视频评论回复列表
func (*Manager) VideoUpload ¶
func (m *Manager) VideoUpload(req VideoUploadReq) (res *VideoUploadRes, err error)
VideoUpload 上传视频到文件服务器
func (*Manager) VideoUploadPartComplete ¶
func (m *Manager) VideoUploadPartComplete(req VideoUploadPartCompleteReq) (res VideoUploadPartCompleteRes, err error)
VideoUploadPartComplete 完成上传视频
type MarketServicePurchaseListData ¶
type MarketServicePurchaseListData struct {
List []MarketServicePurchaseListResult `json:"purchase_info_list"` // 购买信息列表
DYError
}
MarketServicePurchaseListData 用户的服务购买信息
type MarketServicePurchaseListReq ¶
type MarketServicePurchaseListReq struct {
OpenId string // 通过/oauth/access_token/获取,用户的唯一标志
AccessToken string // 调用/oauth/client_token/生成的 token,此 token 不需要用户授权。
ServiceId string // 服务id,服务的唯一标识,可在发布“平台应用类”功能中【应用配置页】和【服务详情页】中获取
IsTestEnv bool // 是否为测试环境:true为测试环境,在服务未发布前或需要测试时使用测试环境参数; false为正式环境,需要传入的服务已发布
}
MarketServicePurchaseListReq 查询用户的服务购买信息请求
type MarketServicePurchaseListRes ¶
type MarketServicePurchaseListRes struct {
Data MarketServicePurchaseListData `json:"data"`
Extra DYExtra `json:"extra"`
}
MarketServicePurchaseListRes 用户的服务购买信息
type MarketServicePurchaseListResult ¶
type MarketServicePurchaseListResult struct {
ServiceId string `json:"service_id"` // 服务id,服务的唯一标识
}
MarketServicePurchaseListResult 用户的服务购买信息
type OauthAccessTokenReq ¶
type OauthAccessTokenReq struct {
Code string // 授权码
}
OauthAccessTokenReq access_token请求
type OauthAccessTokenRes ¶
type OauthAccessTokenRes struct {
Data OauthAccessTokenResData `json:"data"`
Message string `json:"message"`
}
OauthAccessTokenRes access_token
type OauthAccessTokenResData ¶
type OauthAccessTokenResData struct {
AccessToken string `json:"access_token"` // 接口调用凭证
UnionId string `json:"union_id"` // 当且仅当该网站应用已获得该用户的userinfo授权时,才会出现该字段。
Scope string `json:"scope"` // 用户授权的作用域(Scope),使用逗号(,)分隔,开放平台几乎几乎每个接口都需要特定的Scope。
ExpiresIn uint64 `json:"expires_in"` // access_token接口调用凭证超时时间,单位(秒)
OpenId string `json:"open_id"` // 授权用户唯一标识
RefreshToken string `json:"refresh_token"` // 用户刷新access_token
DYError
}
OauthAccessTokenResData access_token
type OauthClientAccessTokenRes ¶
type OauthClientAccessTokenRes struct {
Data OauthClientAccessTokenResData `json:"data"`
Message string `json:"message"`
}
OauthClientAccessTokenRes client_token
type OauthClientAccessTokenResData ¶
type OauthClientAccessTokenResData struct {
AccessToken string `json:"access_token"`
ExpiresIn uint64 `json:"expires_in"`
DYError
}
OauthClientAccessTokenResData client_token
type OauthParam ¶
type OauthParam struct {
Scope string // 应用授权作用域,多个授权作用域以英文逗号(,)分隔
OptionalScope string // 应用授权可选作用域,多个授权作用域以英文逗号(,)分隔,每一个授权作用域后需要加上一个是否默认勾选的参数,1为默认勾选,0为默认不勾选
RedirectUri string // 授权成功后的回调地址,必须以http/https开头。域名必须对应申请应用时填写的域名,如不清楚请联系应用申请人。
State string // 用于保持请求和回调的状态
}
OauthParam 授权参数
type OauthRefreshTokenReq ¶
type OauthRefreshTokenReq struct {
RefreshToken string // 填写通过access_token获取到的refresh_token参数
}
OauthRefreshTokenReq 刷新access_token请求
type OauthRefreshTokenRes ¶
type OauthRefreshTokenRes struct {
Data OauthRefreshTokenResData `json:"data"`
Message string `json:"message"`
}
OauthRefreshTokenRes 刷新access_token
type OauthRefreshTokenResData ¶
type OauthRefreshTokenResData struct {
AccessToken string `json:"access_token"` // 接口调用凭证
Scope string `json:"scope"` // 用户授权的作用域
ExpiresIn uint64 `json:"expires_in"` // 过期时间,单位(秒)
OpenId string `json:"open_id"` // 当前应用下,授权用户唯一标识
RefreshToken string `json:"refresh_token"` // 用户刷新
DYError
}
OauthRefreshTokenResData 刷新access_token
type OauthRenewRefreshTokenReq ¶
type OauthRenewRefreshTokenReq struct {
RefreshToken string // 填写通过access_token获取到的refresh_token参数
}
OauthRenewRefreshTokenReq 刷新refresh_token请求
type OauthRenewRefreshTokenRes ¶
type OauthRenewRefreshTokenRes struct {
Data OauthRenewRefreshTokenResData `json:"data"`
Message string `json:"message"`
}
OauthRenewRefreshTokenRes 刷新refresh_token
type OauthRenewRefreshTokenResData ¶
type OauthRenewRefreshTokenResData struct {
ExpiresIn uint64 `json:"expires_in"` // 过期时间,单位(秒)
RefreshToken string `json:"refresh_token"` // 用户刷新
DYError
}
OauthRenewRefreshTokenResData 刷新refresh_token
type OauthUserinfoReq ¶
type OauthUserinfoReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
OauthUserinfoReq 用户信息请求
type OauthUserinfoRes ¶
type OauthUserinfoRes struct {
Data OauthUserinfoResData `json:"data"`
}
OauthUserinfoRes 用户信息
type OauthUserinfoResData ¶
type OauthUserinfoResData struct {
Nickname string `json:"nickname"` // 昵称
Province string `json:"province"` // 省
Avatar string `json:"avatar"` // 头像
City string `json:"city"` // 城市
Country string `json:"country"` // 国家
EAccountRole string `json:"e_account_role"` // 类型: * `EAccountM` - 普通企业号 * `EAccountS` - 认证企业号 * `EAccountK` - 品牌企业号
Gender int64 `json:"gender"` // 性别: * `0` - 未知 * `1` - 男性 * `2` - 女性
OpenId string `json:"open_id"` // 用户在当前应用的唯一标识
UnionId string `json:"union_id"` // 用户在当前开发者账号下的唯一标识(未绑定开发者账号没有该字段)
EncryptMobile string `json:"encrypt_mobile"` // 手机号加密字符串
Mobile string `json:"mobile,omitempty"` // 手机号
DYError
}
OauthUserinfoResData 用户信息
type OpenSignatureReq ¶
type OpenSignatureReq struct {
Ticket string
Timestamp int64 // 时间戳
NonceStr string // 生成签名用的随机字符串
}
OpenSignatureReq 验证签名请求
type OpenTicketData ¶
type OpenTicketData struct {
ExpiresIn int64 `json:"expires_in"` // open_ticket超时时间,单位秒
Ticket string `json:"ticket"` // open_ticket接口调用凭证
DYError
}
OpenTicketData open_ticket
type OpenTicketReq ¶
type OpenTicketReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
OpenTicketReq open_ticket请求
type OpenTicketRes ¶
type OpenTicketRes struct {
Data OpenTicketData `json:"data"`
Extra DYExtra `json:"extra"`
}
OpenTicketRes open_ticket
type Poi ¶
type Poi struct {
CountryCode string `json:"country_code"` // 国家编码
PoiId string `json:"poi_id"` // 唯一ID
District string `json:"district"` // 区域名称
Location string `json:"location"` // 经纬度,格式:X,Y
PoiName string `json:"poi_name"` // 名称
Province string `json:"province"` // 省份
Address string `json:"address"` // 地址
City string `json:"city"` // 城市
CityCode string `json:"city_code"` // 城市编码
Country string `json:"country"` // 国家
}
Poi POI信息
type PoiSearchKeywordData ¶
type PoiSearchKeywordData struct {
Pois []Poi `json:"pois"`
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
PoiSearchKeywordData POI信息
type PoiSearchKeywordReq ¶
type PoiSearchKeywordReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
Keyword string // 查询关键字,例如美食
City string // 城市
}
PoiSearchKeywordReq POI信息请求
type PoiSearchKeywordRes ¶
type PoiSearchKeywordRes struct {
Data PoiSearchKeywordData `json:"data"`
Extra DYExtra `json:"extra"`
}
PoiSearchKeywordRes POI信息
type StarAuthorScoreData ¶
type StarAuthorScoreData struct {
ShopScore float64 `json:"shop_score"` // 种草指数
StarScore float64 `json:"star_score"` // 星图指数
UniqueId string `json:"unique_id"` // 达人抖音号
UpdateTimestamp int64 `json:"update_timestamp"` // 达人指数更新时间戳
CooperationScore float64 `json:"cooperation_score"` // 合作指数
CpScore float64 `json:"cp_score"` // 性价比指数
NickName string `json:"nick_name"` // 达人昵称
GrowthScore float64 `json:"growth_score"` // 涨粉指数
SpreadScore float64 `json:"spread_score"` // 传播指数
Follower int64 `json:"follower,omitempty"` // 粉丝数
DYError
}
StarAuthorScoreData 抖音星图达人指数
type StarAuthorScoreReq ¶
type StarAuthorScoreReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
}
StarAuthorScoreReq 抖音星图达人指数请求
type StarAuthorScoreRes ¶
type StarAuthorScoreRes struct {
Data StarAuthorScoreData `json:"data"`
Extra DYExtra `json:"extra"`
}
StarAuthorScoreRes 抖音星图达人指数
type StarAuthorScoreV2Req ¶
type StarAuthorScoreV2Req struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
UniqueId string // 达人抖音号
}
StarAuthorScoreV2Req 抖音星图达人指数数据V2
type StarAuthorScoreV2Res ¶
type StarAuthorScoreV2Res struct {
Data StarAuthorScoreData `json:"data"`
Extra DYExtra `json:"extra"`
}
StarAuthorScoreV2Res 抖音星图达人指数数据V2
type StarHotList ¶
type StarHotList struct {
Follower int64 `json:"follower"` // 粉丝数
NickName string `json:"nick_name"` // 达人昵称
Rank int64 `json:"rank"` // 热榜排名
Score float64 `json:"score"` // 热榜类型对应的热榜指数
Tags []string `json:"tags"` // 标签
UniqueId string `json:"unique_id"` // 抖音号
}
StarHotList 抖音星图达人热榜
type StarHotListData ¶
type StarHotListData struct {
HotListType int64 `json:"hot_list_type"` // 刷新时间
HotListUpdateTimestamp int64 `json:"hot_list_update_timestamp"` // 达人热榜更新时间戳
HotListDescription string `json:"hot_list_description"` // 热榜类型说明 【筛选规则】:综合评估创作者近期作品的有效视频数据、性价比、信用分、有效涨粉、种草指数等加权取值进行排序,以内容数据为主要衡量标准。【达人优势】:综合能力高,具有较大的商业价值。【适用场景】:适用于大部分营销场景,可作为各领域商业投放的必选名单。
List []StarHotList `json:"list"` // 实时热点词
DYError
}
StarHotListData 抖音星图达人热榜
type StarHotListReq ¶
type StarHotListReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
HotListType int64 // 达人热榜类型 * `1` - 星图指数榜 * `2` - 涨粉指数榜 * `3` - 性价比指数榜 * `4` - 种草指数榜 * `5` - 精选指数榜 * `6` - 传播指数榜
}
StarHotListReq 抖音星图达人热榜请求
type StarHotListRes ¶
type StarHotListRes struct {
Data StarHotListData `json:"data"`
Extra DYExtra `json:"extra"`
}
StarHotListRes 抖音星图达人热榜
type Statistics ¶
type Statistics struct {
CommentCount int `json:"comment_count"` // 评论数
DiggCount int `json:"digg_count"` // 点赞数
DownloadCount int `json:"download_count"` // 下载数
ForwardCount int `json:"forward_count"` // 转发数
PlayCount int `json:"play_count"` // 播放数,只有作者本人可见。公开视频设为私密后,播放数也会返回0。
}
Statistics 视频列表
type Video ¶
type Video struct {
Cover string `json:"cover"` // 视频封面
Statistics Statistics `json:"statistics"` // 统计数据
Title string `json:"title"` // 视频标题
CreateTime int64 `json:"create_time"` // 视频创建时间戳
IsReviewed bool `json:"is_reviewed"` // 表示是否审核结束。审核通过或者失败都会返回true,审核中返回false。
IsTop bool `json:"is_top"` // 是否置顶
ItemId string `json:"item_id"` // 视频id
VideoStatus int `json:"video_status"` // 表示视频状态。1:已发布;2:不适宜公开;4:审核中
}
Video 视频列表
type VideoCreateBody ¶
type VideoCreateBody struct {
TimelinessLabel int64 `json:"timeliness_label,omitempty"` // 时效新闻标签,1表示使用。暂不开放
ArticlId string `json:"article_id,omitempty"` // 文章ID,暂不开放
MicroAppId string `json:"micro_app_id,omitempty"` // 小程序id
PoiId string `json:"poi_id,omitempty"` // 地理位置id
MicroAppUrl string `json:"micro_app_url,omitempty"` // 吊起小程序时的参数
ArticleTitle string `json:"article_title,omitempty"` // 文章自定义标题,暂不开放
CoverTsp float64 `json:"cover_tsp,omitempty"` // 将传入的指定时间点对应帧设置为视频封面(单位:秒)
GameId string `json:"game_id,omitempty"` // 游戏id。暂不开放
MicroAppTitle string `json:"micro_app_title,omitempty"` // 小程序标题
PoiName string `json:"poi_name,omitempty"` // 地理位置名称
TimelinessKeyword string `json:"timeliness_keyword,omitempty"` // 最多可添加3个,用`\|`隔开。暂不开放
VideoId string `json:"video_id"` // video_id, 通过/video/upload/接口得到。注意每次调用/video/create/都要调用/video/upload/生成新的video_id。
AtUsers []string `json:"at_users,omitempty"` // 如果需要at其他用户。将text中@nickname对应的open_id放到这里。
GameContent string `json:"game_content,omitempty"` // 游戏个性化参数
Text string `json:"text,omitempty"` // 视频标题, 可以带话题,@用户。 如title1#话题1 #话题2 @openid1 注意: 1. 话题审核依旧遵循抖音的审核逻辑,强烈建议第三方谨慎拟定话题名称,避免强导流行为。
}
VideoCreateBody 创建抖音视频
type VideoCreateReq ¶
type VideoCreateReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Body VideoCreateBody // 创建视频body
}
VideoCreateReq 创建抖音视频请求
type VideoCreateRes ¶
type VideoCreateRes struct {
Data VideoCreateResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoCreateRes 创建抖音视频
type VideoCreateResData ¶
VideoCreateResData 创建抖音视频
type VideoDataBody ¶
type VideoDataBody struct {
ItemIds []string `json:"item_ids"` // item_id数组,仅能查询access_token对应用户上传的视频
}
VideoDataBody 视频数据
type VideoDataReq ¶
type VideoDataReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Body VideoDataBody // 视频数据body
}
VideoDataReq 视频数据请求
type VideoDataRes ¶
type VideoDataRes struct {
Data VideoDataResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoDataRes 视频数据
type VideoDataResData ¶
VideoDataResData 视频数据
type VideoDeleteBody ¶
type VideoDeleteBody struct {
ItemId string `json:"item_id,omitempty"` // 抖音视频id
}
VideoDeleteBody 删除视频
type VideoDeleteReq ¶
type VideoDeleteReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Body VideoDeleteBody // 删除视频body
}
VideoDeleteReq 删除视频请求
type VideoDeleteRes ¶
type VideoDeleteRes struct {
Data VideoDeleteResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoDeleteRes 删除视频
type VideoListReq ¶
type VideoListReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
}
VideoListReq 视频列表请求
type VideoListRes ¶
type VideoListRes struct {
Data VideoListResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoListRes 视频列表
type VideoListResData ¶
type VideoListResData struct {
List []Video `json:"list"` // 视频列表
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
VideoListResData 视频列表
type VideoPartUploadData ¶
type VideoPartUploadData struct {
DYError
}
VideoPartUploadData 上传视频分片到文件服务器
type VideoPartUploadInitReq ¶
type VideoPartUploadInitReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
}
VideoPartUploadInitReq 初始化分片上传请求
type VideoPartUploadInitRes ¶
type VideoPartUploadInitRes struct {
Data VideoPartUploadInitResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoPartUploadInitRes 初始化分片上传
type VideoPartUploadInitResData ¶
VideoPartUploadInitResData 初始化分片上传
type VideoPartUploadReq ¶
type VideoPartUploadReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
FilePath string // 文件路径
UploadId string // 分片上传的标记。有限时间为2小时。
ChunkSize int64 // 视频分片,建议20MB。但不能小于5MB。
Workers uint // 并发上传的块数量
}
VideoPartUploadReq 上传视频分片到文件服务器请求
type VideoPartUploadRes ¶
type VideoPartUploadRes struct {
Data VideoPartUploadData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoPartUploadRes 上传视频分片到文件服务器
type VideoSearchCommentListData ¶
type VideoSearchCommentListData struct {
List []ItemComment `json:"list"`
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
VideoSearchCommentListData 关键词视频评论列表
type VideoSearchCommentListReq ¶
type VideoSearchCommentListReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
SecItemId string // 视频搜索接口返回的加密的视频id
}
VideoSearchCommentListReq 关键词视频评论列表请求
type VideoSearchCommentListRes ¶
type VideoSearchCommentListRes struct {
Data VideoSearchCommentListData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoSearchCommentListRes 关键词视频评论列表
type VideoSearchCommentReplyBody ¶
type VideoSearchCommentReplyBody struct {
CommentId string `json:"comment_id,omitempty"` // 需要回复的评论id(如果需要回复的是视频不传此字段)
Content string `json:"content"` // 评论内容
SecItemId string `json:"sec_item_id"` // 视频搜索接口返回的加密的视频id
}
VideoSearchCommentReplyBody 关键词视频评论回复
type VideoSearchCommentReplyData ¶
VideoSearchCommentReplyData 关键词视频评论回复
type VideoSearchCommentReplyListData ¶
type VideoSearchCommentReplyListData struct {
List []ItemComment `json:"list"`
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
VideoSearchCommentReplyListData 关键词视频评论回复列表
type VideoSearchCommentReplyListReq ¶
type VideoSearchCommentReplyListReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
SecItemId string // 视频搜索接口返回的加密的视频id
CommentId string // 评论id
}
VideoSearchCommentReplyListReq 关键词视频评论回复列表请求
type VideoSearchCommentReplyListRes ¶
type VideoSearchCommentReplyListRes struct {
Data VideoSearchCommentReplyListData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoSearchCommentReplyListRes 关键词视频评论回复列表
type VideoSearchCommentReplyReq ¶
type VideoSearchCommentReplyReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Body VideoSearchCommentReplyBody // 回复视频评论body
}
VideoSearchCommentReplyReq 关键词视频评论回复请求
type VideoSearchCommentReplyRes ¶
type VideoSearchCommentReplyRes struct {
Data VideoSearchCommentReplyData `json:"data"`
Extra DYExtra `json:"extra"`
Message string `json:"message"`
}
VideoSearchCommentReplyRes 关键词视频评论回复
type VideoSearchData ¶
type VideoSearchData struct {
List []VideoSearchResult `json:"list"` // 由于置顶的原因, list长度可能比count指定的数量多一些或少一些。
Cursor int64 `json:"cursor"` // 用于下一页请求的cursor
HasMore bool `json:"has_more"` // 更多数据
DYError
}
VideoSearchData 关键词视频搜索
type VideoSearchReq ¶
type VideoSearchReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
Cursor int64 // 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
Count int64 // 每页数量
Keyword string // 关键词
}
VideoSearchReq 关键词视频搜索请求
type VideoSearchRes ¶
type VideoSearchRes struct {
Data VideoSearchData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoSearchRes 关键词视频搜索
type VideoSearchResult ¶
type VideoSearchResult struct {
Cover string `json:"cover"` // 视频封面
Statistics Statistics `json:"statistics"` // 统计数据
Title string `json:"title"` // 视频标题
CreateTime int64 `json:"create_time"` // 视频创建时间戳
IsReviewed bool `json:"is_reviewed"` // 表示是否审核结束。审核通过或者失败都会返回true,审核中返回false。
IsTop bool `json:"is_top"` // 是否置顶
ItemId string `json:"item_id"` // 视频id
Nickname string `json:"nickname"` // 昵称
OpenId string `json:"open_id"` // 作者openID
Avatar string `json:"avatar"` // 头像
SecItemId string `json:"sec_item_id"` // 特殊加密的视频id通过用户视频搜索的评论接口获取到
}
VideoSearchResult 关键词视频搜索
type VideoUploadPartCompleteReq ¶
type VideoUploadPartCompleteReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
UploadId string // 分片上传的标记。有限时间为2小时。
}
VideoUploadPartCompleteReq 上传视频请求
type VideoUploadPartCompleteRes ¶
type VideoUploadPartCompleteRes struct {
Data VideoUploadResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoUploadPartCompleteRes 上传视频
type VideoUploadReq ¶
type VideoUploadReq struct {
OpenId string // 通过/oauth/access_token/获取,用户唯一标志
AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。
FilePath string // 文件路径
}
VideoUploadReq 上传视频到文件服务器
type VideoUploadRes ¶
type VideoUploadRes struct {
Data VideoUploadResData `json:"data"`
Extra DYExtra `json:"extra"`
}
VideoUploadRes 上传视频到文件服务器
type VideoUploadResData ¶
type VideoUploadResData struct {
Video VideoUploadResVideo `json:"video,omitempty"`
DYError
}
VideoUploadResData 上传视频到文件服务器
type VideoUploadResVideo ¶
type VideoUploadResVideo struct {
Height int64 `json:"height"` // 视频高度
Width int64 `json:"width"` // 视频宽度
VideoId string `json:"video_id"` // 视频id
}
VideoUploadResVideo 上传视频到文件服务器
type WebhookContent ¶
type WebhookContent struct {
Challenge int `json:"challenge,omitempty"` // webhook验证码
ItemId string `json:"item_id,omitempty"` // 视频id
Scopes []string `json:"scopes,omitempty"` // 授权scope列表
Description string `json:"discription,omitempty"` // 具体见私信事件列表
Scene string `json:"scene,omitempty"` // 进入对话来源场景["video", "homepage"]
Object string `json:"object,omitempty"` // 来源场景对应id(video对应视频id)
}
WebhookContent Webhook内容
type WebhookEvent ¶
type WebhookEvent struct {
Event string `json:"event"` // 事件
ClientKey string `json:"client_key"` // 使用应用的client_key
FromUserId string `json:"from_user_id,omitempty"` // 事件发起用户user_id
ToUserId string `json:"to_user_id,omitempty"` // 事件接收用户user_id
Content WebhookContent `json:"content,omitempty"` // 不同的event对应不同的content
}
WebhookEvent Webhook事件