예제 #1
0
 *
 * This PHP implementation been tested under Linux/Apache and Windows/IIS.
 */
require_once 'Vzaar.php';
require_once 'User.php';
require_once 'Video.php';
require_once 'VideoList.php';
require_once 'AccountType.php';
//require_once 'HttpRequest.php';
/**
 * This API call returns the user's public details along with it's relevant metadata
 */
Vzaar::$token = 'token';
//
Vzaar::$secret = 'secret';
Vzaar::$enableHttpVerbose = false;
date_default_timezone_set("Europe/London");
/**
 * Public API
 */
//var_dump(Vzaar::getVideoDetails(17069));
//var_dump(Vzaar::getVideoDetails(36356, true));
//var_dump(Vzaar::getAccountDetails(1));
//var_dump(Vzaar::getVideoList('vzaar-user', true, 10));
//var_dump(Vzaar::searchVideoList('vzaar-user', 'true', 's3'));
//var_dump(Vzaar::getUserDetails('vzaar-user'));
//var_dump(Vzaar::getVideoDetails(21791,true));
//var_dump(Vzaar::getUploadSignature());
//print_r(Vzaar::getUploadSignature());
//print_r(Vzaar::uploadSubtitle('en', 4699267, 'subtitle'));
//print_r(Vzaar::getVideoDetails(632017, true));
예제 #2
0
 * @author skitsanos
 * @version 1.4
 */
require_once 'Vzaar.php';
require_once 'User.php';
require_once 'Video.php';
require_once 'VideoList.php';
require_once 'AccountType.php';
//require_once 'HttpRequest.php';
/**
 * This API call returns the user's public details along with it's relevant metadata
 */
Vzaar::$token = 'token';
//
Vzaar::$secret = 'secret';
Vzaar::$enableHttpVerbose = true;
date_default_timezone_set("Europe/London");
/**
 * Public API
 */
//var_dump(Vzaar::getVideoDetails(17069));
//var_dump(Vzaar::getVideoDetails(36356, true));
//var_dump(Vzaar::getAccountDetails(1));
//var_dump(Vzaar::getVideoList('skitsanos', true, 10));
//var_dump(Vzaar::searchVideoList('skitsanos', 'true', 's3'));
//var_dump(Vzaar::getUserDetails('skitsanos'));
//var_dump(Vzaar::getVideoDetails(21791,true));
//var_dump(Vzaar::getUploadSignature());
//print_r(Vzaar::getUploadSignature('http://skitsanos.com'));
print_r(Vzaar::uploadSubtitle('en', 5579750, 'some subtitle'));
//print_r(Vzaar::getVideoDetails(632017, true));