Back to ziggeo.com

How can I push a single video from the command line using PHP?

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

Have more questions? Submit a request

Comments