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

Kullanıcı Silme

Bu alan, bir kullanıcıyı GroupsAPI ile silme işlemini gösterir.

Aşağıdaki alanda bir kullanıcı için <USER_ID> parametresi ile silme işlemini örnekleyen yapıyı görebilirsiniz:

curl --location --request DELETE 'https://<DOMAIN>/xapi/user/<USER_ID>' \
--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 kullanıcı 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 User 
client.users.delete_by_user_id("<USER_ID>")

Last updated