material_batchUploadVideoAsync_request

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (*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 (*MaterialBatchUploadVideoAsyncRequest) GetUrlPath

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL