videoCreate
public static Boolean videoCreate(string token, VideoGalleryStructure videoStructure)
Add the Video.Returns true if the video is embeded else false.
Section
Video Gallery Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
array videoStructureThe array containing the video details.
string video_embedThe URL for the video page.

Returns
BooleanReturns true if the video is embeded else false.


Examples
download example code
xmlrpc_videoCreate.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10.  
  11. $videoStructure['video_embed'] = 'http://www.youtube.com/watch?v=npmrVGzr3GA';
  12. $returnValue = $client->AddVideo($token, $videoStructure);
  13. ?>