πCreating a Session
This step shows how to create a session with GroupsAPI.
Parameter
Type
Required
Default
Description
curl --location --request POST 'https://<DOMAIN>/xapi/session' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "test session ",
"start_date": "2024-09-27T14:00:25.699Z",
"duration": "6",
"options": {
"allow_rating": false,
"chat": {
"offMessageModule": true,
"offGeneralMsging": false
},
"duration": {
"allowExtendTime": false,
"useRemainingTime": true
},
"allow_users_stream_self_cam_mic": false,
}
}'from perculus_sdk.client import APIClient
# API client
client = APIClient()
...
# Create session
session = client.sessions.create_session({
"name": "test session",
"start_date": "2024-09-27T14:00:25.699Z",
"duration": "6",
"options": {
"allow_rating": false,
"chat": {
"offMessageModule": true,
"offGeneralMsging": false
},
"duration": {
"allowExtendTime": false,
"useRemainingTime": true
},
"allow_users_stream_self_cam_mic": false,
}
})
print(session)Last updated