SnykSelfAppSession
Model for Snyk Self App Sessions.
Overview
This model represents sessions for apps installed by the current user. Uses the Snyk v2 REST API endpoint: /self/apps/{app_id}/sessions
import clearskies
from clearskies_snyk.models import SnykSelfAppSession
def my_handler(snyk_self_app_session: SnykSelfAppSession):
# List sessions for an app
sessions = snyk_self_app_session.where("app_id=app-id-123")
for session in sessions:
print(f"Session: {session.id} created at {session.created_at}")