Methods

Objects

media

Media management

Method Description
media.get_quota_status What's my quota status ?
media.import_file_from_base64_async Import temporary file from base64 blob, supported filetypes include: a...
media.import_file_from_url_async Import temporary file from URL, supported filetypes include: aac, ac3,...

Methods

media.get_quota_status

Description

What's my quota status ?

Signature

method: media.get_quota_status

params: []

Parameters

No parameters.

Result

Type Description Format/Object
object Quota status Object: Media.Quota

media.import_file_from_base64_async

Description

Import temporary file from base64 blob, supported filetypes include: aac, ac3, mp2, mp3, wav, gsm, pcma, pcmu

Signature

method: media.import_file_from_base64_async

params: [string data, object webhook]

Parameters

Parameter Type Description NULL
data string Base64 encoded file data NO
webhook object Dynamic webhook. Status updates will be sent to this specific webhook. You only need to set 'endpoint' and optionally 'options'. The job result will contain a temporary file name.
Object: Webhook
YES

Result

Type Description Format/Object
string Job ID

media.import_file_from_url_async

Description

Import temporary file from URL, supported filetypes include: aac, ac3, mp2, mp3, wav, gsm, pcma, pcmu

Signature

method: media.import_file_from_url_async

params: [string url, object webhook]

Parameters

Parameter Type Description NULL
url string Url of the file to be imported NO
webhook object Dynamic webhook. Status updates will be sent to this specific webhook. You only need to set 'endpoint' and optionally 'options'. The job result will contain a temporary file name.
Object: Webhook
YES

Result

Type Description Format/Object
string Job ID