Where to get started
The PHP Composer module can be installed into you PHP project by:
php composer.phar install openmeetings-php-client
Afterwards you can access different API methods for example:
$BASE_URL = "http://localhost:5080/openmeetings";
$config = new Configuration();
$config->setHost($BASE_URL . '/services');
$userApiInstance = new UserServiceApi(null, $config);
//1. Login to service
$serviceResultLoginWrapper = $userApiInstance->login("soapuser", "!HansHans1");
if ($serviceResultLoginWrapper->getServiceResult()->getType() != "SUCCESS") {
$text = "Login Failed " . $serviceResultLoginWrapper->getServiceResult()->getMessage();
return view('hello_index', ['text' => $text]);
}
$sid = $serviceResultLoginWrapper->getServiceResult()->getMessage();
Full source code can be seen in an sample projects using the module in PHP using the the Laravel framework, see: https://github.com/om-hosting/openmeetings-php-laravel-sample-project
You can find details about all API endpoints and examples at: https://github.com/om-hosting/openmeetings-php-client#documentation-for-api-endpoints