sdk-for-python/docs/examples/apps/list-installation-scopes.md at main · appwrite/sdk-for-python · GitHub
Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 456 Bytes

list-installation-scopes.md

File metadata and controls

16 lines (12 loc) · 456 Bytes
from appwrite.client import Client
from appwrite.services.apps import Apps
from appwrite.models import AppScopeList

client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('<YOUR_PROJECT_ID>') # Your project ID
client.set_session('') # The user session to authenticate with

apps = Apps(client)

result: AppScopeList = apps.list_installation_scopes()

print(result.model_dump())