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 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 EventStatus
- type EventStatusListReq
- type EventStatusListRes
- type EventStatusListResData
- type EventStatusUpdateBody
- type EventStatusUpdateReq
- type EventStatusUpdateRes
- type EventStatusUpdateResData
- type Fans
- 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) 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) EventStatusList(req EventStatusListReq) (res EventStatusListRes, err error)
- func (m *Manager) EventStatusUpdate(req EventStatusUpdateReq) (res EventStatusUpdateRes, 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) 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) 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) 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 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 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 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 AesDecrypt ¶
func Base64Decode ¶
func Base64Encode ¶
func NewCredentials ¶
func NewCredentials(clientKey, clientSecret string) *auth.Credentials
func PKCS5UnPadding ¶
Types ¶
type AwemeShareData ¶
type AwemeShareData struct {}
type AwemeShareReq ¶
type AwemeShareReq struct {}
type AwemeShareRes ¶
type AwemeShareRes struct {}
type ConfigSignReq ¶
type DDataExternalItemBaseData ¶
type DDataExternalItemBaseData struct { Result DataExternalItemBase `json:"result"` // 视频基础数据 DYError }
type DYError ¶
type DataExternalFansCommentData ¶
type DataExternalFansCommentData struct { List []DataExternalFansCommentItem `json:"list,omitempty"` DYError }
type DataExternalFansCommentRes ¶
type DataExternalFansCommentRes struct { Data DataExternalFansCommentData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalFansFavouriteData ¶
type DataExternalFansFavouriteData struct { List []DataExternalFansFavouriteItem `json:"list,omitempty"` DYError }
type DataExternalFansFavouriteRes ¶
type DataExternalFansFavouriteRes struct { Data DataExternalFansFavouriteData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalFansSourceData ¶
type DataExternalFansSourceData struct { List []DataExternalFansSourceItem `json:"list,omitempty"` DYError }
type DataExternalFansSourceRes ¶
type DataExternalFansSourceRes struct { Data DataExternalFansSourceData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalItemBase ¶
type DataExternalItemBaseReq ¶
type DataExternalItemBaseRes ¶
type DataExternalItemBaseRes struct { Data DDataExternalItemBaseData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalItemComment ¶
type DataExternalItemCommentData ¶
type DataExternalItemCommentData struct { ResultList []DataExternalItemComment `json:"result_list"` // 评论数据列表 DYError }
type DataExternalItemCommentRes ¶
type DataExternalItemCommentRes struct { Data DataExternalItemCommentData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalItemLike ¶
type DataExternalItemLikeData ¶
type DataExternalItemLikeData struct { ResultList []DataExternalItemLike `json:"result_list"` // 点赞数据列表 DYError }
type DataExternalItemLikeReq ¶
type DataExternalItemLikeRes ¶
type DataExternalItemLikeRes struct { Data DataExternalItemLikeData `json:"data"` // 日期 Extra DYExtra `json:"extra"` // 每日点赞数 }
type DataExternalItemPlay ¶
type DataExternalItemPlayData ¶
type DataExternalItemPlayData struct { ResultList []DataExternalItemPlay `json:"result_list"` // 播放数据列表 DYError }
type DataExternalItemPlayReq ¶
type DataExternalItemPlayRes ¶
type DataExternalItemPlayRes struct { Data DataExternalItemPlayData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalItemShare ¶
type DataExternalItemShare struct {}
type DataExternalItemShareData ¶
type DataExternalItemShareData struct {}
type DataExternalItemShareReq ¶
type DataExternalItemShareReq struct {}
type DataExternalItemShareRes ¶
type DataExternalItemShareRes struct {}
type DataExternalUserComment ¶
type DataExternalUserCommentData ¶
type DataExternalUserCommentData struct { ResultList []DataExternalUserComment `json:"result_list"` // 用户评论数据 DYError }
type DataExternalUserCommentRes ¶
type DataExternalUserCommentRes struct { Data DataExternalUserCommentData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalUserFans ¶
type DataExternalUserFansData ¶
type DataExternalUserFansData struct { ResultList []DataExternalUserFans `json:"result_list"` // 用户粉丝数据 DYError }
type DataExternalUserFansReq ¶
type DataExternalUserFansRes ¶
type DataExternalUserFansRes struct { Data DataExternalUserFansData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalUserItem ¶
type DataExternalUserItemData ¶
type DataExternalUserItemData struct { ResultList []DataExternalUserItem `json:"result_list"` // 用户视频数据 DYError }
type DataExternalUserItemReq ¶
type DataExternalUserItemRes ¶
type DataExternalUserItemRes struct { Data DataExternalUserItemData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalUserLike ¶
type DataExternalUserLikeData ¶
type DataExternalUserLikeData struct { ResultList []DataExternalUserLike `json:"result_list"` // 用户点赞数据 DYError }
type DataExternalUserLikeReq ¶
type DataExternalUserLikeRes ¶
type DataExternalUserLikeRes struct { Data DataExternalUserLikeData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalUserProfile ¶
type DataExternalUserProfileData ¶
type DataExternalUserProfileData struct { ResultList []DataExternalUserProfile `json:"result_list"` // 用户主页访问数据 DYError }
type DataExternalUserProfileRes ¶
type DataExternalUserProfileRes struct { Data DataExternalUserProfileData `json:"data"` Extra DYExtra `json:"extra"` }
type DataExternalUserShare ¶
type DataExternalUserShare struct {}
type DataExternalUserShareData ¶
type DataExternalUserShareData struct {}
type DataExternalUserShareReq ¶
type DataExternalUserShareReq struct {}
type DataExternalUserShareRes ¶
type DataExternalUserShareRes struct {}
type EventStatus ¶
type EventStatusListReq ¶
type EventStatusListReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
type EventStatusListRes ¶
type EventStatusListRes struct { Data EventStatusListResData `json:"data"` Extra DYExtra `json:"extra"` }
type EventStatusListResData ¶
type EventStatusListResData struct { List []EventStatus `json:"list"` // 事件列表 DYError }
type EventStatusUpdateBody ¶
type EventStatusUpdateBody struct {
List []EventStatus `json:"list"` // 更新事件列表
}
type EventStatusUpdateReq ¶
type EventStatusUpdateReq struct { AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。 Body EventStatusUpdateBody // 更新事件订阅请求body }
type EventStatusUpdateRes ¶
type EventStatusUpdateRes struct { Data EventStatusUpdateResData `json:"data"` Extra DYExtra `json:"extra"` }
type EventStatusUpdateResData ¶
type EventStatusUpdateResData struct {
DYError
}
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"` // 用户在当前开发者账号下的唯一标识(未绑定开发者账号没有该字段) }
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"` // 所有粉丝的数量 }
type FansDataList ¶
type FansDataList struct { Details FansDataDetails `json:"fans_data,omitempty"` DYError }
type FansDataReq ¶
type FansDataRes ¶
type FansDataRes struct { Data FansDataList `json:"data"` Extra DYExtra `json:"extra"` }
type FansListData ¶
type FansListReq ¶
type FansListRes ¶
type FansListRes struct { Data FansListData `json:"data"` Extra DYExtra `json:"extra"` }
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"` // 用户在当前开发者账号下的唯一标识(未绑定开发者账号没有该字段) }
type FollowingListData ¶
type FollowingListReq ¶
type FollowingListRes ¶
type FollowingListRes struct { Data FollowingListData `json:"data"` Extra DYExtra `json:"extra"` }
type HotSearchSentence ¶
type HotSearchSentencesData ¶
type HotSearchSentencesData struct { ActiveTime string `json:"active_time"` // 刷新时间 List []HotSearchSentence `json:"list"` // 实时热点词 DYError }
type HotSearchSentencesReq ¶
type HotSearchSentencesReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
type HotSearchSentencesRes ¶
type HotSearchSentencesRes struct { Data HotSearchSentencesData `json:"data"` Extra DYExtra `json:"extra"` }
type HotSearchTrendingSentencesData ¶
type HotSearchTrendingSentencesData struct { List []HotSearchTrendingSentence `json:"list"` // 实时热点词 Total int32 `json:"total"` // 总数 Cursor int64 `json:"cursor"` // 用于下一页请求的cursor HasMore bool `json:"has_more"` // 更多数据 DYError }
type HotSearchTrendingSentencesRes ¶
type HotSearchTrendingSentencesRes struct { Data HotSearchTrendingSentencesData `json:"data"` Extra DYExtra `json:"extra"` }
type HotSearchVideosData ¶
type HotSearchVideosReq ¶
type HotSearchVideosRes ¶
type HotSearchVideosRes struct { Data HotSearchVideosData `json:"data"` Extra DYExtra `json:"extra"` }
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放到这里。 }
type ImageCreateReq ¶
type ImageCreateReq struct { OpenId string // 通过/oauth/access_token/获取,用户唯一标志 AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。 Body ImageCreateBody // 请求body }
type ImageCreateRes ¶
type ImageCreateRes struct { Data ImageCreateResData `json:"data"` Extra DYExtra `json:"extra"` }
type ImageCreateResData ¶
type ImageUploadReq ¶
type ImageUploadRes ¶
type ImageUploadRes struct { Data ImageUploadResData `json:"data"` Extra DYExtra `json:"extra"` }
type ImageUploadResData ¶
type ImageUploadResData struct { Image ImageUploadResImage `json:"image,omitempty"` DYError }
type 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"` // 点赞数 }
type ItemCommentListData ¶
type ItemCommentListData struct { List []ItemComment `json:"list"` // 评论列表 Cursor int64 `json:"cursor"` // 用于下一页请求的cursor HasMore bool `json:"has_more"` // 更多数据 DYError }
type ItemCommentListReq ¶
type ItemCommentListRes ¶
type ItemCommentListRes struct { Data ItemCommentListData `json:"data"` Extra DYExtra `json:"extra"` }
type ItemCommentReplyBody ¶
type ItemCommentReplyData ¶
type ItemCommentReplyListData ¶
type ItemCommentReplyListData struct { List []ItemComment `json:"list"` // 评论回复列表 Cursor int64 `json:"cursor"` // 用于下一页请求的cursor HasMore bool `json:"has_more"` // 更多数据 DYError }
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 }
type ItemCommentReplyListRes ¶
type ItemCommentReplyListRes struct { Data ItemCommentReplyListData `json:"data"` Extra DYExtra `json:"extra"` }
type ItemCommentReplyReq ¶
type ItemCommentReplyReq struct { OpenId string // 通过/oauth/access_token/获取,用户唯一标志 AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。 Body ItemCommentReplyBody // 回复视频评论body }
type ItemCommentReplyRes ¶
type ItemCommentReplyRes struct { Data ItemCommentReplyData `json:"data"` Extra DYExtra `json:"extra"` Message string `json:"message"` }
type JsTicketData ¶
type JsTicketReq ¶
type JsTicketReq struct {
AccessToken string // 调用/oauth/client_token/生成的token,此token不需要用户授权。
}
type JsTicketRes ¶
type JsTicketRes struct { Data JsTicketData `json:"data"` Extra DYExtra `json:"extra"` }
type Manager ¶
type Manager struct { Credentials *auth.Credentials // contains filtered or unexported fields }
func NewManager ¶
func NewManager(credentials *auth.Credentials, tr http.RoundTripper) *Manager
func (*Manager) AwemeShare ¶
func (m *Manager) AwemeShare(req AwemeShareReq) (res AwemeShareRes, err error)
获取share-id
func (*Manager) DataExternalFansComment ¶
func (m *Manager) DataExternalFansComment(req DataExternalFansCommentReq) (res DataExternalFansCommentRes, err error)
获取用户粉丝热评
func (*Manager) DataExternalFansFavourite ¶
func (m *Manager) DataExternalFansFavourite(req DataExternalFansFavouriteReq) (res DataExternalFansFavouriteRes, err error)
获取用户粉丝喜好
func (*Manager) DataExternalFansSource ¶
func (m *Manager) DataExternalFansSource(req DataExternalFansSourceReq) (res DataExternalFansSourceRes, err error)
获取用户粉丝来源分布
func (*Manager) DataExternalItemBase ¶
func (m *Manager) DataExternalItemBase(req DataExternalItemBaseReq) (res DataExternalItemBaseRes, err error)
获取视频基础数据
func (*Manager) DataExternalItemComment ¶
func (m *Manager) DataExternalItemComment(req DataExternalItemCommentReq) (res DataExternalItemCommentRes, err error)
获取视频评论数据
func (*Manager) DataExternalItemLike ¶
func (m *Manager) DataExternalItemLike(req DataExternalItemLikeReq) (res DataExternalItemLikeRes, err error)
获取视频点赞数据
func (*Manager) DataExternalItemPlay ¶
func (m *Manager) DataExternalItemPlay(req DataExternalItemPlayReq) (res DataExternalItemPlayRes, err error)
获取视频播放数据
func (*Manager) DataExternalItemShare ¶
func (m *Manager) DataExternalItemShare(req DataExternalItemShareReq) (res DataExternalItemShareRes, err error)
获取视频分享数据
func (*Manager) DataExternalUserComment ¶
func (m *Manager) DataExternalUserComment(req DataExternalUserCommentReq) (res DataExternalUserCommentRes, err error)
获取用户评论数
func (*Manager) DataExternalUserFans ¶
func (m *Manager) DataExternalUserFans(req DataExternalUserFansReq) (res DataExternalUserFansRes, err error)
获取用户粉丝数
func (*Manager) DataExternalUserItem ¶
func (m *Manager) DataExternalUserItem(req DataExternalUserItemReq) (res DataExternalUserItemRes, err error)
获取用户视频情况
func (*Manager) DataExternalUserLike ¶
func (m *Manager) DataExternalUserLike(req DataExternalUserLikeReq) (res DataExternalUserLikeRes, err error)
获取用户点赞数
func (*Manager) DataExternalUserProfile ¶
func (m *Manager) DataExternalUserProfile(req DataExternalUserProfileReq) (res DataExternalUserProfileRes, err error)
获取用户主页访问数
func (*Manager) DataExternalUserShare ¶
func (m *Manager) DataExternalUserShare(req DataExternalUserShareReq) (res DataExternalUserShareRes, err error)
获取用户分享数
func (*Manager) DecryptMobile ¶
解密用户手机号
func (*Manager) EventStatusList ¶
func (m *Manager) EventStatusList(req EventStatusListReq) (res EventStatusListRes, err error)
获取事件订阅状态
func (*Manager) EventStatusUpdate ¶
func (m *Manager) EventStatusUpdate(req EventStatusUpdateReq) (res EventStatusUpdateRes, err error)
更新应用推送事件订阅状态
func (*Manager) FansData ¶
func (m *Manager) FansData(req FansDataReq) (res FansDataRes, err error)
获取用户粉丝数据(用户首次授权应用后,需要间隔2天才会产生全部的数据;并只提供粉丝大于100的用户数据。)
func (*Manager) FansList ¶
func (m *Manager) FansList(req FansListReq) (res FansListRes, err error)
获取粉丝列表
func (*Manager) FollowingList ¶
func (m *Manager) FollowingList(req FollowingListReq) (res FollowingListRes, err error)
获取关注列表
func (*Manager) HotSearchSentences ¶
func (m *Manager) HotSearchSentences(req HotSearchSentencesReq) (res HotSearchSentencesRes, err error)
获取实时热点词
func (*Manager) HotSearchTrendingSentences ¶
func (m *Manager) HotSearchTrendingSentences(req HotSearchTrendingSentencesReq) (res HotSearchTrendingSentencesRes, err error)
获取上升词
func (*Manager) HotSearchVideos ¶
func (m *Manager) HotSearchVideos(req HotSearchVideosReq) (res HotSearchVideosRes, err error)
获取热点词聚合的视频
func (*Manager) ImageCreate ¶
func (m *Manager) ImageCreate(req ImageCreateReq) (res *ImageCreateRes, err error)
发布图片
func (*Manager) ImageUpload ¶
func (m *Manager) ImageUpload(req ImageUploadReq) (res *ImageUploadRes, err error)
上传图片到文件服务器
func (*Manager) ItemCommentList ¶
func (m *Manager) ItemCommentList(req ItemCommentListReq) (res ItemCommentListRes, err error)
评论列表
func (*Manager) ItemCommentReply ¶
func (m *Manager) ItemCommentReply(req ItemCommentReplyReq) (res ItemCommentReplyRes, err error)
回复视频评论
func (*Manager) ItemCommentReplyList ¶
func (m *Manager) ItemCommentReplyList(req ItemCommentReplyListReq) (res ItemCommentReplyListRes, err error)
评论回复列表
func (*Manager) JsConfigSignature ¶
func (m *Manager) JsConfigSignature(req ConfigSignReq) string
通过config方法验证签名
func (*Manager) JsTicket ¶
func (m *Manager) JsTicket(req JsTicketReq) (res JsTicketRes, err error)
获取jsapi_ticket
func (*Manager) OauthAccessToken ¶
func (m *Manager) OauthAccessToken(req OauthAccessTokenReq) (res OauthAccessTokenRes, err error)
获取access_token
func (*Manager) OauthClientAccessToken ¶
func (m *Manager) OauthClientAccessToken() (res OauthClientAccessTokenRes, err error)
生成client_token
func (*Manager) OauthRefreshToken ¶
func (m *Manager) OauthRefreshToken(req OauthRefreshTokenReq) (res OauthRefreshTokenRes, err error)
刷新access_token
func (*Manager) OauthRenewRefreshToken ¶
func (m *Manager) OauthRenewRefreshToken(req OauthRenewRefreshTokenReq) (res OauthRenewRefreshTokenRes, err error)
刷新refresh_token
func (*Manager) OauthUserinfo ¶
func (m *Manager) OauthUserinfo(req OauthUserinfoReq) (res *OauthUserinfoRes, err error)
获取用户信息
func (*Manager) StarAuthorScore ¶
func (m *Manager) StarAuthorScore(req StarAuthorScoreReq) (res StarAuthorScoreRes, err error)
获取抖音星图达人指数
func (*Manager) StarAuthorScoreV2 ¶
func (m *Manager) StarAuthorScoreV2(req StarAuthorScoreV2Req) (res StarAuthorScoreV2Res, err error)
获取抖音星图达人指数数据V2
func (*Manager) StarHotList ¶
func (m *Manager) StarHotList(req StarHotListReq) (res StarHotListRes, err error)
获取抖音星图达人热榜
func (*Manager) VideoCreate ¶
func (m *Manager) VideoCreate(req VideoCreateReq) (res VideoCreateRes, err error)
创建抖音视频
func (*Manager) VideoData ¶
func (m *Manager) VideoData(req VideoDataReq) (res VideoDataRes, err error)
查询指定视频数据
func (*Manager) VideoDelete ¶
func (m *Manager) VideoDelete(req VideoDeleteReq) (res VideoDeleteRes, err error)
删除授权用户发布的视频
func (*Manager) VideoList ¶
func (m *Manager) VideoList(req VideoListReq) (res VideoListRes, err error)
查询授权账号视频数据
func (*Manager) VideoPartUpload ¶
func (m *Manager) VideoPartUpload(req VideoPartUploadReq) (res *VideoPartUploadRes, err error)
上传视频分片到文件服务器
func (*Manager) VideoPartUploadInit ¶
func (m *Manager) VideoPartUploadInit(req VideoPartUploadInitReq) (res VideoPartUploadInitRes, err error)
初始化上传
func (*Manager) VideoUpload ¶
func (m *Manager) VideoUpload(req VideoUploadReq) (res *VideoUploadRes, err error)
上传视频到文件服务器
func (*Manager) VideoUploadPartComplete ¶
func (m *Manager) VideoUploadPartComplete(req VideoUploadPartCompleteReq) (res VideoUploadPartCompleteRes, err error)
完成上传
type OauthAccessTokenReq ¶
type OauthAccessTokenReq struct {
Code string // 授权码
}
type OauthAccessTokenRes ¶
type OauthAccessTokenRes struct { Data OauthAccessTokenResData `json:"data"` Message string `json:"message"` }
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 }
type OauthClientAccessTokenRes ¶
type OauthClientAccessTokenRes struct { Data OauthClientAccessTokenResData `json:"data"` Message string `json:"message"` }
type OauthParam ¶
type OauthRefreshTokenReq ¶
type OauthRefreshTokenReq struct {
RefreshToken string // 填写通过access_token获取到的refresh_token参数
}
type OauthRefreshTokenRes ¶
type OauthRefreshTokenRes struct { Data OauthRefreshTokenResData `json:"data"` Message string `json:"message"` }
type OauthRenewRefreshTokenReq ¶
type OauthRenewRefreshTokenReq struct {
RefreshToken string // 填写通过access_token获取到的refresh_token参数
}
type OauthRenewRefreshTokenRes ¶
type OauthRenewRefreshTokenRes struct { Data OauthRenewRefreshTokenResData `json:"data"` Message string `json:"message"` }
type OauthUserinfoReq ¶
type OauthUserinfoRes ¶
type OauthUserinfoRes struct {
Data OauthUserinfoResData `json:"data"`
}
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 }
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 }
type StarAuthorScoreReq ¶
type StarAuthorScoreRes ¶
type StarAuthorScoreRes struct { Data StarAuthorScoreData `json:"data"` Extra DYExtra `json:"extra"` }
type StarAuthorScoreV2Req ¶
type StarAuthorScoreV2Res ¶
type StarAuthorScoreV2Res struct { Data StarAuthorScoreData `json:"data"` Extra DYExtra `json:"extra"` }
type 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 }
type StarHotListReq ¶
type StarHotListRes ¶
type StarHotListRes struct { Data StarHotListData `json:"data"` Extra DYExtra `json:"extra"` }
type 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:审核中 }
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. 话题审核依旧遵循抖音的审核逻辑,强烈建议第三方谨慎拟定话题名称,避免强导流行为。 }
type VideoCreateReq ¶
type VideoCreateReq struct { OpenId string // 通过/oauth/access_token/获取,用户唯一标志 AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。 Body VideoCreateBody // 创建视频body }
type VideoCreateRes ¶
type VideoCreateRes struct { Data VideoCreateResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoCreateResData ¶
type VideoDataBody ¶
type VideoDataBody struct {
ItemIds []string `json:"item_ids"` // item_id数组,仅能查询access_token对应用户上传的视频
}
type VideoDataReq ¶
type VideoDataReq struct { OpenId string // 通过/oauth/access_token/获取,用户唯一标志 AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。 Body VideoDataBody // 视频数据body }
type VideoDataRes ¶
type VideoDataRes struct { Data VideoDataResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoDataResData ¶
type VideoDeleteBody ¶
type VideoDeleteBody struct {
ItemId string `json:"item_id,omitempty"` // 抖音视频id
}
type VideoDeleteReq ¶
type VideoDeleteReq struct { OpenId string // 通过/oauth/access_token/获取,用户唯一标志 AccessToken string // 调用/oauth/access_token/生成的token,此token需要用户授权。 Body VideoDeleteBody // 删除视频body }
type VideoDeleteRes ¶
type VideoDeleteRes struct { Data VideoDeleteResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoDeleteResData ¶
type VideoDeleteResData struct {
DYError
}
type VideoListReq ¶
type VideoListRes ¶
type VideoListRes struct { Data VideoListResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoListResData ¶
type VideoPartUploadData ¶
type VideoPartUploadData struct {
DYError
}
type VideoPartUploadInitReq ¶
type VideoPartUploadInitRes ¶
type VideoPartUploadInitRes struct { Data VideoPartUploadInitResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoPartUploadReq ¶
type VideoPartUploadRes ¶
type VideoPartUploadRes struct { Data VideoPartUploadData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoUploadPartCompleteRes ¶
type VideoUploadPartCompleteRes struct { Data VideoUploadResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoUploadReq ¶
type VideoUploadRes ¶
type VideoUploadRes struct { Data VideoUploadResData `json:"data"` Extra DYExtra `json:"extra"` }
type VideoUploadResData ¶
type VideoUploadResData struct { Video VideoUploadResVideo `json:"video,omitempty"` DYError }
type 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) }
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 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.