For the complete documentation index, see llms.txt. This page is also available as Markdown.

Katılımcı Silme

Bu alan, GroupsAPI ile bir oturumadaki katılımcılarınızı silmenin yöntemini gösterir.

Bir oturumda bulunan katılımcılarınızı 3 farklı parametre ile silebilirsiniz:

  • ATTENDANCE_CODE

  • USER_ID

  • EMAIL

Aşağıdaki örnekte bir oturumdaki katılımcınızın silmenin yöntemini görebilirsiniz:

ATTENDANCE_CODE parametresi ile silme işlemi

curl --location --request DELETE 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendee/<ATTENDANCE_CODE>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data ''

USER_ID parametresi ile silme işlemi

curl --location --request DELETE 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendee/<USER_ID>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data ''

EMAIL parametresi ile silme işlemi

curl --location --request DELETE 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendee/<EMAIL>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data ''

İlk olarak Python SDK'sı yüklenmelidir:

pip install perculus-sdk

SDK'nın yüklendiğinden emin olunduktan sonra aşağıdaki şekilde katılımcılarınızı silebilirsiniz:

from 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>"
)

#DELETE the attandee by ATTENDANCE_CODE
client.attendees.delete_by_attendance_code_or_user_id(
    session_id="<SESSION_ID>",
    attendance_code_or_user_id="<ATTENDANCE_CODE>"
)

#DELETE the attandee by USER_ID
client.attendees.delete_by_attendance_code_or_user_id(
    session_id="<SESSION_ID>",
    attendance_code_or_user_id="<USER_ID>"
)

#DELETE the attandee by EMAIL
client.attendees.delete_by_email(
    session_id="<SESSION_ID>",
    email="<EMAIL>"
)

Last updated