mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: sync sdk examples after spec changes
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user