How can you do that?

Comments

VladRM’s picture

Status: Active » Closed (fixed)

Please check out the Video Publishing API documentation and the sample code that comes with the php library.

try {
  $factory = new Api_Methods_Factory(API_USER, API_USER_KEY, Api_Methods_Factory::XML_RESPONSE);
  $method = $factory->factory(Api_Methods_Factory::AUDIO);
  
//  $data = array('title' => 'test', 'order_by' => 'title', 'order_direction' => 'asc', 'page' => 1);
  
  if (!isset($data)) {
    exit('No data defined for this test');
  }
  
  echo $method->getAll($data);
}
catch (Api_Methods_Exception $api_exception) {
  echo "API error: {$api_exception}";
}
catch (Api_Http_RequestException $http_exception) {
  echo "Connection error: {$http_exception}";
}