Companywebcast API Wiki

PHP has good support for consuming web services through the PHP Soap Module. Because the MetaService runs over SSL only, you need the PHP OpenSSL Module as well. Both modules are part of the standard PHP distribution, but you may need to enable them in your php.ini, or install them through your distro's package manager.

// This code depends on the PHP Soap and PHP OpenSSL modules being available

$username = "testusername"; $password = "testpassword";

//// Set up the client $client = new SoapClient('https://services.companywebcast.com/meta/metaservice.svc?wsdl');

//// Calling the MetaService // Create an object that contains the search parameters $searchparameters->Username = $username; $searchparameters->Password = $password; $searchparameters->OwnerName = null; $searchparameters->TopicTitle = null; $searchparameters->SpeakerLastName = null; $searchparameters->WebcastTitle = null; $searchparameters->PeriodFrom = null; $searchparameters->PeriodTo = null; $searchparameters->Status = null; $searchparameters->PageNumber = 0; $searchparameters->PageSize = 100;

// Call the WebcastSearch Method on the MetaService $SearchResponse = $client->WebcastSearch($searchparameters); // WebcastSearchResult contains an integer // that indicates the success or failure of your request $SearchResult = $SearchResponse->WebcastSearchResult; // WebcastSummaries contains a collection of WebcastSummary, // which contains data that can be used for WebcastGet $Summaries = $SearchResponse->WebcastSummaries;

// Create an object that contains the parameters needed for calling WebcastGet $getparameters->Username = $username; $getparameters->Password = $password; $getparameters->Code = $Summaries0->Code; $getparameters->Language = $Summaries0->Languages0;

// Call the WebcastGet Method on the MetaService $GetResponse = $client->WebcastGet($getparameters); // WebcastGetResult contains an integer // that indicates the success or failure of your request $GetResult = $GetResponse->WebcastGetResult; // Webcast is an object that contains detailed information // about a single webcast, in a single language $Webcast = $GetResponse->Webcast;