コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
<?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;