WizIQ Training
Posts 4
|
<?php
define("AUTH_URL","http://authorlive.com/aGLIVE/aGLive.asmx");
class IntegrationMethods {
public function scheduleNewEvent(){ $person = array( 'EventDetails' => array( 'UserName' => 'usename', 'Password' => 'password', 'EventName'=> 'SchedulePHP', 'DateTime' => '09/29/2010 01:00:00 PM', 'TimeZone' => 33, 'Duration' => 30, 'UserCode' => 'flex', 'MaxUsers' => 1, 'VideoSize'=>'NotSet', 'Description'=>'schedule new event PHP', 'AttendeeList'=>'', 'CategoryNumber' => 4, 'IsExtendableByMins' => '1', 'ExtendedMins' => 60, 'ShowTimer' => '1', 'RecodingReplay'=>'enTrue', 'TimerType'=>'enFalse', 'PresenterTimeZone'=>33, 'AttendeeTimeZone'=>33, 'AudioQuality'=>2, 'PingTime'=>1, 'ShowTimer'=>'1', 'RecodingReplay'=>'', 'CompanyName'=>'vinu', 'EnablePrivateChat'=>'yes', 'PresenterName' => 'preeti', 'PresenterLabel'=>'testPHP', 'PresenterFeedbackURL'=>'', 'AttendeeFeedbackURL'=>'', 'SupportURL'=>'', 'MathToolBar' => 'enTrue', 'BrowserCloseMsg'=>'enTrue', 'ChatAlertSound'=>'enFalse', 'DefaultTab'=>'P', 'ShowEraser'=>'enFalse', 'CompanyURL'=>'', 'PrintRequired'=>'false', 'DisplayAttendeeLoginLogout' => 'enDisplay', 'EndSessionRequired'=>'enTrue', 'AttendeeContent'=>'enFalse', 'VideoSharing'=>'true', 'SmileysRequired'=>'true', 'ShowConnStatus'=>'false', 'ShowDisableChatButton'=>'false', 'SecureLogin'=>'true' ) ); try { $client = new SoapClient(AUTH_URL.'?WSDL'); return $_response=$client->ScheduleNewEvent($person); //print_r($_response); } catch (Exception $e) { return $exception=$e->getMessage(); } }
|
WizIQ Training
Posts 4
|
public function AddAttendee($sessioncode, $attendeeList){ try {
$person = array( 'AttendeeList' => array( 'SessionCode' => $sessioncode, 'AttendeeList'=>$attendeeList ) );
$client = new SoapClient(AUTH_URL.'?WSDL'); return $_response=$client->AddAttendee($person); //print_r($_response); } catch (Exception $e) { $exception=$e->getMessage(); } } /////////////////////////////////////////////////////////////////////////////////// function RemoveAttendee($sessioncode, $attendeeList){ try { $person = array( 'AttendeeList' => array( 'SessionCode' => $sessioncode, 'AttendeeList'=>$attendeeList ) ); $client = new SoapClient(AUTH_URL.'?WSDL'); return $_response=$client->RemoveAttendee($person); //print_r($_response); } catch (Exception $e) { $exception=$e->getMessage(); } } ////////////////////////////////////////////////////////////////////////////////////// public function GetSessionAttendees($sessioncode,$UserName,$Pwd){ $person = array( 'Account' => array( 'SessionCode' => $sessioncode, 'UserName'=> $UserName, 'Password' => $Pwd ) ); try { $client = new SoapClient(AUTH_URL.'?WSDL'); return $_response=$client->GetSessionAttendees($person); //print_r($_response); } catch (Exception $e) { return $exception=$e->getMessage(); }
}
|