Page tree
Skip to end of metadata
Go to start of metadata

Parameters

Country codes according to ISO 3166-1 alpha-2 standard (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).

Name

Sub-array name

Type

Value

Required

cat_id

Integer

number

No

title
String
No
asset
Array
Yes

protocolString
Yes

hostString
Yes

pathString
Yes

usernameString
No

passwordString
No
security
Array
No

expire_timeDatetime
No

use_tokenInteger1 / 0No

token_durationString1h / 3h / 6h / 12h / 1d / 1w / 2w / 1mNo

allowed_embed_hostsString
No

ip_blacklistString
No

ip_whitelistString
No

allowed_countriesArrayISO 3166-1 alpha-2 standardNo
callback
Array
No

urlStringif contains SYSTEM_ID or ASSET_ID, then will be replaced with system valuesNo

actionStringget / postNo

Example

$file_upload_list = array(
             'title' => 'Video 20180417 03',
             'cat_id' => 1498,

             'asset' => array(

                   'protocol' => 'http','host' => 'techslides.com','path' => '/demos/sample-videos/small.mp4','username' => '','password' => ''

             ),

            'security' => array(
                   'expire_time' => '2018-05-01 00:00:00',
                   'use_token' => 1,
                   'token_duration' => '1h',
                   'allowed_embed_hosts' => 'www.telia.lv',
                   'ip_blacklist' => '10.1.1.1',
                   'ip_whitelist' => '10.2.2.2',
                   'allowed_countries' => array('LV','EE','LT','PL')
             ),

             'callback' => array("url" => "http://www.telia.lv/?telia_system_media_id=SYSTEM_ID&telia_system_asset_id=ASSET_ID", "action" => "get"),
       )
);

$data = array('object' => 'file', 'action' => 'upload', 'parameters' =>$file_upload_list);


Response

Response FieldsTypeSample ValueComment
statusCode
Integer00 - Success
statusMessage
String"Items saved for upload"Error or confirmation message
  • No labels