Documentation ¶
Index ¶
- type MaterialBatchUploadVideoAsyncParam
- type MaterialBatchUploadVideoAsyncRequest
- func (c *MaterialBatchUploadVideoAsyncRequest) Execute(accessToken *doudian_sdk.AccessToken) (*material_batchUploadVideoAsync_response.MaterialBatchUploadVideoAsyncResponse, ...)
- func (c *MaterialBatchUploadVideoAsyncRequest) GetParamObject() interface{}
- func (c *MaterialBatchUploadVideoAsyncRequest) GetParams() *MaterialBatchUploadVideoAsyncParam
- func (c *MaterialBatchUploadVideoAsyncRequest) GetUrlPath() string
- type MaterialsItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaterialBatchUploadVideoAsyncParam ¶
type MaterialBatchUploadVideoAsyncParam struct { // 素材信息 Materials []MaterialsItem `json:"materials"` }
type MaterialBatchUploadVideoAsyncRequest ¶
type MaterialBatchUploadVideoAsyncRequest struct { doudian_sdk.BaseDoudianOpApiRequest Param *MaterialBatchUploadVideoAsyncParam }
func New ¶
func New() *MaterialBatchUploadVideoAsyncRequest
func (*MaterialBatchUploadVideoAsyncRequest) Execute ¶
func (c *MaterialBatchUploadVideoAsyncRequest) Execute(accessToken *doudian_sdk.AccessToken) (*material_batchUploadVideoAsync_response.MaterialBatchUploadVideoAsyncResponse, error)
func (*MaterialBatchUploadVideoAsyncRequest) GetParamObject ¶
func (c *MaterialBatchUploadVideoAsyncRequest) GetParamObject() interface{}
func (*MaterialBatchUploadVideoAsyncRequest) GetParams ¶
func (c *MaterialBatchUploadVideoAsyncRequest) GetParams() *MaterialBatchUploadVideoAsyncParam
func (*MaterialBatchUploadVideoAsyncRequest) GetUrlPath ¶
func (c *MaterialBatchUploadVideoAsyncRequest) GetUrlPath() string
type MaterialsItem ¶
type MaterialsItem struct { // 该参数仅有2个作用:(1)一次请求中素材的唯一标示;(2)接口防并发,规则是:不同请求所有request_id排序之后拼接起来,若相同视为同一次请求 RequestId string `json:"request_id"` // 文件夹id,“0”为素材中心根目录。若想创建文件夹,请参考:https://ehome.bytedance.net/djt/apiManage/doc/preview/946?doc=true FolderId string `json:"folder_id"` // 素材名称,长度限制为50个字符,最好带上后缀 Name string `json:"name"` // 视频url。如果是二进制上传,请使用file_uri字段。url和file_uri二选一,不能同时为空 Url string `json:"url"` // 二进制文件对应的uri,获取方式请参考:https://op.jinritemai.com/docs/guide-docs/171/1719 FileUri string `json:"file_uri"` // 素材类型,请传固定值:video MaterialType string `json:"material_type"` }
Click to show internal directories.
Click to hide internal directories.