Name |
Format |
Required |
Description |
private_key |
string |
required
|
Private key, available in your account. |
public_key |
string |
required
|
Public key, available in your account. |
video_key |
string |
required
|
A label identifying this video. |
expiration |
int |
required
|
Expiration when video source will not be available anymore |
hash |
string |
required |
How to build a hash |
How to build your hash - PHP
<?php
$expireTimestamp = time() + 86400;
$publicKey = 'public_key';
$privateKey = 'private_key';
$hash = hash('sha256', $privateKey . $expireTimestamp . $publicKey );
?>