bvw

package
v0.9.176 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SERVICE_DOMAIN = "bvw.bj.baidubce.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*bce.BceClient
}

func NewClient

func NewClient(ak, sk, endPoint string) (*Client, error)

NewClient make BVW service client with defualt configuration endPoint value only bj can be chosed and enPoint value defualt bj

func (*Client) CreateDraft

func (cli *Client) CreateDraft(request *api.CreateDraftRequest) (*api.MatlibTaskResponse, error)

create edit draft

func (*Client) CreateMatlibConfig

func (cli *Client) CreateMatlibConfig(request *api.MatlibConfigBaseRequest) (*bce.BceResponse, error)

create matlib config

func (*Client) CreateVideoEdit

func (cli *Client) CreateVideoEdit(request *api.VideoEditCreateRequest) (*api.VideoEditCreateResponse, error)

create edit job

func (*Client) DeleteMaterial

func (cli *Client) DeleteMaterial(id string) error

delete material by materialId

func (*Client) DeleteMaterialPreset

func (cli *Client) DeleteMaterialPreset(id string) error

delete preset matertials by id

func (*Client) GetDraftList

func (cli *Client) GetDraftList(request *api.DraftListRequest) (*api.ListByPageResponse, error)

get draft list

func (*Client) GetMaterial

func (cli *Client) GetMaterial(id string) (*api.MaterialGetResponse, error)

get material by materialId

func (Client) GetMaterialPreset

func (cli Client) GetMaterialPreset(id string) (*api.MaterialPresetGetResponse, error)

get preset matertials by id

func (*Client) GetMatlibConfig

func (cli *Client) GetMatlibConfig() (*api.MatlibConfigGetResponse, error)

get matlib config

func (*Client) GetSingleDraft

func (cli *Client) GetSingleDraft(id int) (*api.GetDraftResponse, error)

get draft and timeline with matlib task id

func (*Client) PollingVideoEdit

func (cli *Client) PollingVideoEdit(id int) (*api.VideoEditPollingResponse, error)

query video edit job status

func (*Client) SearchMaterial

func (cli *Client) SearchMaterial(materialSearchRequest *api.MaterialSearchRequest) (*api.MaterialSearchResponse, error)

search material

func (Client) SearchMaterialPreset

func (cli Client) SearchMaterialPreset(request *api.MaterialPresetSearchRequest) (*api.MaterialPresetSearchResponse, error)

search preset materials

func (*Client) UpdateDraft

func (cli *Client) UpdateDraft(id int, request *api.MatlibTaskRequest) error

update draft by id

func (*Client) UpdateMatlibConfig

func (cli *Client) UpdateMatlibConfig(request *api.MatlibConfigUpdateRequest) error

update matlib config

func (*Client) UploadMaterial

func (cli *Client) UploadMaterial(request *api.MatlibUploadRequest) (*api.MatlibUploadResponse, error)

upload video /audio/picture to MaterialLibaray

func (*Client) UploadMaterialPreset

func (cli *Client) UploadMaterialPreset(fileType string, request *api.MatlibUploadRequest) (
	*api.MaterialPresetUploadResponse, error)

upload preset materials to the media library

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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