public function testUploadVideo() { $guid = Vzaar::uploadVideo(self::$filePath); $videoId = Vzaar::processVideo($guid, "for deletion", "php test", ""); $json = json_decode(Vzaar::deleteVideo($videoId)); $this->assertEquals($json->video_status_id, 9); }
public function testUploadVideo() { $title = "api-php-" . generateRandomStr(5); $guid = Vzaar::uploadVideo(self::$filePath); $videoId = Vzaar::processVideo($guid, $title, "php test", ""); $vid = Vzaar::getVideoDetails($videoId, true); $this->assertEquals($vid->videoStatusDescription, "Preparing"); // clean up Vzaar::deleteVideo($videoId); }
<?php require_once '../../src/Vzaar.php'; Vzaar::$token = "GETUGkPFNC84JlzXkOMSYQFTOCAixOIiroh7oUj3k"; Vzaar::$secret = "skitsanos"; $guid = Vzaar::uploadVideo('D:\\Sites\\Vzaar\\Vzaar API\\api\\php\\trunk\\tests\\video.flv'); echo 'guid: ' . $guid . ' --- video id: '; $apireply = Vzaar::processVideo($guid, 'SimpleUpload test', '', 1); echo $apireply;