chore: sync sdk examples after spec changes

This commit is contained in:
Chirag Aggarwal
2025-12-17 15:48:49 +05:30
parent 759792c447
commit fadcb39765
175 changed files with 310 additions and 92 deletions
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -5,6 +5,7 @@ from appwrite.enums import AuthenticationFactor
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
account = Account(client)
@@ -5,6 +5,7 @@ from appwrite.enums import OAuthProvider
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -4,6 +4,7 @@ from appwrite.services.account import Account
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
account = Account(client)
@@ -16,5 +16,7 @@ result = databases.create_collection(
name = '<NAME>',
permissions = [Permission.read(Role.any())], # optional
document_security = False, # optional
enabled = False # optional
enabled = False, # optional
attributes = [], # optional
indexes = [] # optional
)
@@ -16,5 +16,7 @@ result = tables_db.create_table(
name = '<NAME>',
permissions = [Permission.read(Role.any())], # optional
row_security = False, # optional
enabled = False # optional
enabled = False, # optional
columns = [], # optional
indexes = [] # optional
)