echo "\n\ndeleteGroupFailed: " . $e->getMessage(); } /* Example: Delete a Group */ try { $instance->deleteGroup($groupID); } catch (Exception $e) { echo "\n\ndeleteGroupFailed: " . $e->getMessage(); } echo "<hr>"; echo "<h1>Sessions</h1>"; /* Example: Create Session */ $validUntil = mktime(0, 0, 0, date("m"), date("d") + 1, date("y")); // One day in the future $sessionID = $instance->createSession($groupID, $authorID, $validUntil); echo "New Session ID is {$sessionID->sessionID}\n\n"; /* Example: Get Session info */ echo "Session info:\n"; $sessionID = $sessionID->sessionID; $sessioninfo = $instance->getSessionInfo($sessionID); var_dump($sessioninfo); echo "\n"; /* Example: List Sessions os Author */ echo "Sessions the Author {$authorID} is part of:\n"; $authorSessions = $instance->listSessionsOfAuthor($authorID); var_dump($authorSessions); echo "\n"; /* Example: List Sessions of Group */ $groupSessions = $instance->listSessionsOfGroup($groupID); var_dump($groupSessions); /* Example: Delete Session */ $instance->deleteSession($sessionID);