Skip to content

Latest commit

 

History

History
516 lines (493 loc) · 41.2 KB

README.md

File metadata and controls

516 lines (493 loc) · 41.2 KB

Go API client for douyin

douyin open api

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./douyin"

Documentation for API Endpoints

All URIs are relative to https://open.douyin.com

Class Method HTTP request Description
CommentApi ItemCommentList Get /item/comment/list 评论列表
CommentApi ItemCommentReply Post /item/comment/reply 评论回复列表
CommentApi ItemCommentReplyList Get /item/comment/reply/list 评论回复列表
CommentApi VideoCommentList Get /video/comment/list 评论列表
CommentApi VideoCommentReply Post /video/comment/reply (企业号)回复视频评论
CommentApi VideoCommentReplyList Get /video/comment/reply/list 评论列表
CommentApi VideoCommentTop Post /video/comment/top (企业号)置顶视频评论
DataApi DataExternalItemBase Get /data/external/item/base 获取视频基础数据
DataApi DataExternalItemComment Get /data/external/item/comment 获取视频评论数据
DataApi DataExternalItemLike Get /data/external/item/like 获取视频点赞数据
DataApi DataExternalItemPlay Get /data/external/item/play 获取视频播放数据
DataApi DataExternalItemShare Get /data/external/item/share 获取视频分享数据
DataApi DataExternalSdkShare Get /data/external/sdk_share 获取SDK分享视频数据
DataApi DataExternalUserComment Get /data/external/user/comment 获取用户评论数
DataApi DataExternalUserFans Get /data/external/user/fans 获取用户粉丝数
DataApi DataExternalUserItem Get /data/external/user/item 获取用户视频情况
DataApi DataExternalUserLike Get /data/external/user/like 获取用户点赞数
DataApi DataExternalUserProfile Get /data/external/user/profile 获取用户主页访问数
DataApi DataExternalUserShare Get /data/external/user/share 获取用户分享数
DataApi FansData Get /fans/data 获取用户粉丝数据
DataPoiApi DataExternalPoiBase Get /data/external/poi/base 获取POI基础数据
DataPoiApi DataExternalPoiBillboard Get /data/external/poi/billboard POI热度榜
DataPoiApi DataExternalPoiClaimList Get /data/external/poi/claim/list POI认领列表
DataPoiApi DataExternalPoiServiceBase Get /data/external/poi/service_base POI服务基础数据
DataPoiApi DataExternalPoiServiceUser Get /data/external/poi/service_user POI服务成交用户数据
DataPoiApi DataExternalPoiUser Get /data/external/poi/user POI用户数据
DataPoiApi PoiBaseQueryAmap Get /poi/base/query/amap 通过高德POI ID获取抖音POI ID
DevtoolApi DevtoolMicappIsLegal Get /devtool/micapp/is_legal 提供一个接口给开发者校验小程序appid是否可挂载到短视频
EnterpriseApi EnterpriseLeadsTagCreate Post /enterprise/leads/tag/create 创建标签
EnterpriseApi EnterpriseLeadsTagDelete Post /enterprise/leads/tag/delete 删除标签
EnterpriseApi EnterpriseLeadsTagList Get /enterprise/leads/tag/list 获取标签列表
EnterpriseApi EnterpriseLeadsTagUpdate Post /enterprise/leads/tag/update 编辑标签
EnterpriseApi EnterpriseLeadsTagUserList Get /enterprise/leads/tag/user/list 获取打标签的用户列表
EnterpriseApi EnterpriseLeadsTagUserUpdate Post /enterprise/leads/tag/user/update 给用户设置标签
EnterpriseApi EnterpriseLeadsUserActionList Get /enterprise/leads/user/action/list 获取意向用户互动记录
EnterpriseApi EnterpriseLeadsUserDetail Get /enterprise/leads/user/detail 获取意向用户详情
EnterpriseApi EnterpriseLeadsUserList Get /enterprise/leads/user/list 获取意向用户列表
EnterpriseGrouponApi EnterpriseGrouponDetail Get /enterprise/groupon/detail 团购活动详情
EnterpriseGrouponApi EnterpriseGrouponList Get /enterprise/groupon/list 团购活动列表
EnterpriseGrouponApi EnterpriseGrouponOffline Post /enterprise/groupon/offline 团购活动下线
EnterpriseGrouponApi EnterpriseGrouponSave Post /enterprise/groupon/save 创建团购活动
EnterpriseImApi EnterpriseImPersonConversationCreate Post /enterprise/im/persona/conversation/create 主动创建客服会话
EnterpriseImApi EnterpriseImPersonConversationDelete Post /enterprise/im/persona/conversation/delete 删除客服会话
EnterpriseImApi EnterpriseImPersonCreate Post /enterprise/im/persona/create 客服账号
EnterpriseImApi EnterpriseImPersonDelete Post /enterprise/im/persona/delete 删除客服账号
EnterpriseImApi EnterpriseImPersonList Get /enterprise/im/persona/list 获取客服列表
EnterpriseImCardApi EnterpriseImCardDelete Post /enterprise/im/card/delete 删除消息卡片
EnterpriseImCardApi EnterpriseImCardList Get /enterprise/im/card/list 获取消息卡片列表
EnterpriseImCardApi EnterpriseImCardSave Post /enterprise/im/card/save 创建/更新消息卡片
GrouponCodeApi EnterpriseGrouponCodeStatus Post /enterprise/groupon/code/status 查看券码状态
GrouponCodeApi EnterpriseGrouponCodeVerification Post /enterprise/groupon/code/verification 券码核销
GrouponOrderApi EnterpriseGrouponOrderDetail Get /enterprise/groupon/order/detail 团购活动订单详情
GrouponOrderApi EnterpriseGrouponOrderList Get /enterprise/groupon/order/list 团购活动订单列表详情
GrouponOrderApi EnterpriseGrouponOrderOverview Get /enterprise/groupon/order/overview 团购活动订单汇总信息
GrouponOrderApi EnterpriseGrouponOrderRefundApplyList Get /enterprise/groupon/order/refund/apply/list 团购活动用户申请退款订单列表
GrouponOrderApi EnterpriseGrouponOrderRefundConfirm Post /enterprise/groupon/order/refund/confirm 确认退款
HotsearchApi HotsearchSentences Get /hotsearch/sentences 获取实时热点词
HotsearchApi HotsearchTrendingSentences Get /hotsearch/trending/sentences 获取上升词
HotsearchApi HotsearchVideos Get /hotsearch/videos 获取热点词聚合的视频
ImApi EnterpriseImMessageSend Post /enterprise/im/message/send (企业号)发送私信给用户
ImageApi DouyinImageCreate Post /image/create 发布图片
ImageApi DouyinImageUpload Post /image/upload 上传图片到文件服务器
JsApi JsGetticket Get /js/getticket 获取jsapi_ticket
MediaApi EnterpriseMediaDelete Post /enterprise/media/delete 删除永久素材
MediaApi EnterpriseMediaList Get /enterprise/media/list 获取永久素材列表
MediaApi EnterpriseMediaTempUpload Post /enterprise/media/temp/upload 上传临时素材
MediaApi EnterpriseMediaUpload Post /enterprise/media/upload 上传素材
OauthApi AccessToken Get /oauth/access_token 获取access_token
OauthApi Authorize Get /oauth/authorize 头条获取授权码(code)
OauthApi AuthorizeV2 Get /oauth/authorize/v2 抖音静默获取授权码(code)
OauthApi ClientToken Get /oauth/client_token 生成client_token
OauthApi Connect Get /platform/oauth/connect 抖音获取授权码(code)
OauthApi RefreshToken Get /oauth/refresh_token 刷新access_token
OauthApi RenewRefreshToken Get /oauth/renew_refresh_token 刷新refresh_token
PayApi DouyinPayAccountQuery Get /douyin-pay/account-query 账户余额查询
PayApi DouyinPayAccountTrans Post /douyin-pay/account-trans 商户向用户转账
PayApi DouyinPayOrderQuery Get /douyin-pay/order-query 订单查询,可查询一个月内的订单,优先级biz_order_no>pay_order_no
PoiApi PoiQuery Get /poi/query 获取抖音POI ID
PoiApi PoiSupplierMatch Post /poi/supplier/match 店铺匹配
PoiApi PoiSupplierMatchQuery Get /poi/supplier/match/query 店铺匹配结果查询
PoiApi PoiSupplierQuery Get /poi/supplier/query 查询店铺
PoiApi PoiSupplierSync Post /poi/supplier/sync 商铺同步
PoiOrderApi PoiExtHotelOrderCancel Post /poi/ext/hotel/order/cancel 取消订单(该接口由接入方实现)
PoiOrderApi PoiExtHotelOrderCommit Post /poi/ext/hotel/order/commit 下单接口(该接口由接入方实现)
PoiOrderApi PoiExtHotelOrderStatus Post /poi/ext/hotel/order/status 支付状态通知(该接口由接入方实现)
PoiOrderApi PoiOrderStatus Post /poi/order/status 订单状态同步接口
PoiOrderApi PoiOrderSync Post /poi/order/sync 订单同步
RankApi DiscoveryEntRankItem Get /discovery/ent/rank/item 获取抖音电影榜、抖音电视剧榜、抖音综艺榜
RankApi DiscoveryEntRankVersion Get /discovery/ent/rank/version 获取抖音影视综榜单版本
SandboxApi SandboxWebhookEventSend Post /sandbox/webhook/event/send 模拟webhook事件
SkuApi PoiExtHotelSku Get /poi/ext/hotel/sku sku拉取(该接口由接入方实现)
SkuApi PoiSkuSync Post /poi/sku/sync SKU同步
SpuApi PoiSpuQuery Get /poi/spu/query 查询SPU
SpuApi PoiSpuSync Post /poi/spu/sync SPU同步
StarApi StarAuthorScore Get /star/author_score 获取抖音星图达人指数
StarApi StarAuthorScoreV2 Get /star/author_score_v2 获取抖音星图达人指数数据V2
StarApi StarHostList Get /star/hot_list 获取抖音星图达人热榜
UserinfoApi FansList Get /fans/list 获取粉丝列表
UserinfoApi FollowingList Get /following/list 获取关注列表
UserinfoApi Userinfo Get /oauth/userinfo 获取用户信息
VideoApi DouyinVideoCreate Post /video/create 创建抖音视频
VideoApi DouyinVideoData Post /video/data 查询指定视频数据
VideoApi DouyinVideoDelete Post /video/delete 删除授权用户发布的视频
VideoApi DouyinVideoList Get /video/list 查询授权账号视频数据
VideoApi DouyinVideoPartComplete Post /video/part/complete 视频分片完成上传
VideoApi DouyinVideoPartInit Post /video/part/init 抖音分片初始化上传
VideoApi DouyinVideoPartUpload Post /video/part/upload 上传视频分片到文件服务器
VideoApi DouyinVideoPositionSearch Get /poi/search/keyword 查询POI信息
VideoApi DouyinVideoShareId Get /share-id/ 获取share-id
VideoApi DouyinVideoUpload Post /video/upload 抖音上传视频到文件服务器
VideoApi ToutiaoVideoCreate Post /toutiao/video/create 创建头条视频
VideoApi ToutiaoVideoData Post /toutiao/video/data 查询头条指定视频数据
VideoApi ToutiaoVideoList Get /toutiao/video/list 查询授权账号视频数据
VideoApi ToutiaoVideoPartComplete Post /toutiao/video/part/complete/ 头条视频分片完成上传
VideoApi ToutiaoVideoPartInit Post /toutiao/video/part/init 头条分片初始化上传
VideoApi ToutiaoVideoPartUpload Post /toutiao/video/part/upload 上传视频分片到文件服务器
VideoApi ToutiaoVideoUpload Post /toutiao/video/upload 头条上传视频到文件服务器
VideoApi XiguaVideoCreate Post /xigua/video/create 创建西瓜视频
VideoApi XiguaVideoData Post /xigua/video/data 西瓜查询指定视频数据
VideoApi XiguaVideoList Get /xigua/video/list 西瓜查询授权账号视频数据
VideoApi XiguaVideoPartComplete Post /xigua/video/part/complete 视频分片完成上传
VideoApi XiguaVideoPartInit Post /xigua/video/part/init 西瓜分片初始化上传
VideoApi XiguaVideoPartUpload Post /xigua/video/part/upload 上传视频分片到文件服务器
VideoApi XiguaVideoUpload Post /xigua/video/upload 西瓜上传视频到文件服务器
VideoSearchApi VideoSearch Get /video/search 关键词视频搜索
VideoSearchApi VideoSearchCommentList Get /video/search/comment/list 关键词视频评论列表
VideoSearchApi VideoSearchCommentReply Post /video/search/comment/reply 关键词视频评论回复
VideoSearchApi VideoSearchCommentReplyList Get /video/search/comment/reply/list 评论回复列表

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author