Documentation ¶
Index ¶
- Constants
- type Client
- func (cli *Client) CreateDraft(request *api.CreateDraftRequest) (*api.MatlibTaskResponse, error)
- func (cli *Client) CreateMatlibConfig(request *api.MatlibConfigBaseRequest) (*bce.BceResponse, error)
- func (cli *Client) CreateVideoEdit(request *api.VideoEditCreateRequest) (*api.VideoEditCreateResponse, error)
- func (cli *Client) DeleteMaterial(id string) error
- func (cli *Client) DeleteMaterialPreset(id string) error
- func (cli *Client) GetDraftList(request *api.DraftListRequest) (*api.ListByPageResponse, error)
- func (cli *Client) GetMaterial(id string) (*api.MaterialGetResponse, error)
- func (cli Client) GetMaterialPreset(id string) (*api.MaterialPresetGetResponse, error)
- func (cli *Client) GetMatlibConfig() (*api.MatlibConfigGetResponse, error)
- func (cli *Client) GetSingleDraft(id int) (*api.GetDraftResponse, error)
- func (cli *Client) PollingVideoEdit(id int) (*api.VideoEditPollingResponse, error)
- func (cli *Client) SearchMaterial(materialSearchRequest *api.MaterialSearchRequest) (*api.MaterialSearchResponse, error)
- func (cli Client) SearchMaterialPreset(request *api.MaterialPresetSearchRequest) (*api.MaterialPresetSearchResponse, error)
- func (cli *Client) UpdateDraft(id int, request *api.MatlibTaskRequest) error
- func (cli *Client) UpdateMatlibConfig(request *api.MatlibConfigUpdateRequest) error
- func (cli *Client) UploadMaterial(request *api.MatlibUploadRequest) (*api.MatlibUploadResponse, error)
- func (cli *Client) UploadMaterialPreset(fileType string, request *api.MatlibUploadRequest) (*api.MaterialPresetUploadResponse, error)
Constants ¶
View Source
const DEFAULT_SERVICE_DOMAIN = "bvw.bj.baidubce.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
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 ¶
delete material by materialId
func (*Client) DeleteMaterialPreset ¶
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
Click to show internal directories.
Click to hide internal directories.