You can use the following script:
<?php
require_once(dirname(__FILE__) . "/../Ziggeo.php");
$opts = getopt("", array("token:", "privatekey:", "file:"));
$ziggeo = new Ziggeo($opts["token"], $opts["privatekey"]);
$ziggeo->videos()->create(array(
"file" => $opts["file"]
));
Call it as follows:
$ php upload.php --token APP_TOKEN --privatekey PRIVATE_KEY --file VIDEO_FILE
Comments