Katılımcı Ekleme
Bu alan, bir oturuma bir veya birden fazla kullanıcıyı katılımcı olarak GroupsAPI ile eklemenin yöntemini gösterir.
Parameter
Tip
Açıklama
curl --location 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendees' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '[{
"user_id": "<USER_ID>",
"role": "u"
}]'pip install perculus-sdkfrom perculus_sdk.client import APIClient
# API client
client = APIClient()
# Set your domain (if you haven't set it before)
client.set_domain("<DOMAIN>")
# Set your credentials(if you haven't set it before)
client.set_credentials(
access_key="<EMAIL>",
secret_key="<PASSWORD>",
account_id="<ACCOUNT_ID>"
)
#Add an Attendee
attendee = client.attendees.add_by_user_id("<SESSION_ID>", "<USER_ID>")
print(attendee)
#Add Multiple Attendees
attendees = client.attendees.add_multiple_by_user_id("<SESSION_ID>", [
{
"user_id": "<USER_ID1>",
},{
"user_id": "<USER_ID2>",
}
])
print(attendees){
"approved": [
{
"session_id": "<SESSION_ID>",
"user_id": "<USER_ID>",
"attendee_id": "***",
"attendance_code": "<ATTENDANCE_CODE>",
"name": "john",
"surname": "Doe",
"email": "[email protected]",
"role": "u",
"mobile": "",
"avatar": null,
"creation_date": "2024-08-16T01:55:15.7991084Z",
"updating_date": null
}
],
"rejected": []
}Last updated