$padList = $instance->listPads($groupID); echo "Available pads for this group:\n"; var_dump($padList->padIDs); echo "\n"; } catch (Exception $e) { echo "\n\nlistPads Failed: " . $e->getMessage(); } /* Example: Create Mapped Group -- This maps a humanly readable name to a groupID */ try { $mapGroup = $instance->createGroupIfNotExistsFor("Guests"); } catch (Exception $e) { 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);