← Back to all articles
Blog

Three EFV SAAS API endpoints added: create jobs, test connections and delete videos

While building BeeCMS, the EFV system provides transcoding as a distributed cloud SAAS API. We added three integration SAAS API endpoints to EFV: create transcoding jobs, test the server connection and delete videos from EFV.

SAAS API overview

One: create a transcoding job

POST /apifluent/createjob

DATA传递数据
apisecret  efv系统中设置的APISECRET
apikey     efv系统中设置的APIKEY
clientId   客户端辨识视频id,在BeeCMS中就是里边的视频ID,为字符串类型
remotePath 远程视频地址,云储存可访问的视频地址,也可以是预签名的存在有效期的可访问视频地址,用于EFV远程转码
notifyUrl  通知域名,转码完成数据会自动回传到这个地址,在BeeCMS中就是接收到数据就填充多分辨率播放链接和海报等数据

Two: delete an EFV video

DELETE /apifluent/delete?id=movieid

DATA传递数据
apisecret  efv系统中设置的APISECRET
apikey     efv系统中设置的APIKEY

QUERY传递数据
id=5fcf24ed3fd3764f5b40f95f

This id is the video's id in EFV. After transcoding, the efv id is sent to notifyUrl. The integrating system stores this id in its database and requests delete when deletion is needed, removing the efv video data, segments, images and related content.

Three: test the EFV connection

POST /apifluent/ping

DATA传递数据
apisecret  efv系统中设置的APISECRET
apikey     efv系统中设置的APIKEY

A successful test returns json:

{success: 1}

The integrating system can use this response to detect incorrect apisecret or apikey values, or connection problems with EFV.