🗒️Oturum Listesi
Bu alan, tüm oturumlarınızın listesini GroupsAPI ile nasıl çekebileceğinizi gösterir.
curl --location 'https://<DOMAIN>/xapi/session' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--data ''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>"
)
#List sessions
sessions = client.sessions.list_sessions()
print(sessions)Last updated