mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Specs + doc regen
This commit is contained in:
1038 files changed
+8150
-1533
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.account import Account
|
||||
from appwrite.enums import AuthenticatorType
|
||||
|
||||
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)
|
||||
|
||||
result = account.create_mfa_authenticator(
|
||||
type = AuthenticatorType.TOTP
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.account import Account
|
||||
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
|
||||
|
||||
account = Account(client)
|
||||
|
||||
result = account.create_mfa_challenge(
|
||||
factor = AuthenticationFactor.EMAIL
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
from appwrite.client import Client
|
||||
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)
|
||||
|
||||
result = account.create_mfa_recovery_codes()
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.account import Account
|
||||
from appwrite.enums import AuthenticatorType
|
||||
|
||||
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)
|
||||
|
||||
result = account.delete_mfa_authenticator(
|
||||
type = AuthenticatorType.TOTP
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
from appwrite.client import Client
|
||||
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)
|
||||
|
||||
result = account.get_mfa_recovery_codes()
|
||||
@@ -0,0 +1,11 @@
|
||||
from appwrite.client import Client
|
||||
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)
|
||||
|
||||
result = account.list_mfa_factors()
|
||||
@@ -0,0 +1,15 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.account import Account
|
||||
from appwrite.enums import AuthenticatorType
|
||||
|
||||
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)
|
||||
|
||||
result = account.update_mfa_authenticator(
|
||||
type = AuthenticatorType.TOTP,
|
||||
otp = '<OTP>'
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
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)
|
||||
|
||||
result = account.update_mfa_challenge(
|
||||
challenge_id = '<CHALLENGE_ID>',
|
||||
otp = '<OTP>'
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
from appwrite.client import Client
|
||||
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)
|
||||
|
||||
result = account.update_mfa_recovery_codes()
|
||||
@@ -0,0 +1,20 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.create_apns_provider(
|
||||
provider_id = '<PROVIDER_ID>',
|
||||
name = '<NAME>',
|
||||
auth_key = '<AUTH_KEY>', # optional
|
||||
auth_key_id = '<AUTH_KEY_ID>', # optional
|
||||
team_id = '<TEAM_ID>', # optional
|
||||
bundle_id = '<BUNDLE_ID>', # optional
|
||||
sandbox = False, # optional
|
||||
enabled = False # optional
|
||||
)
|
||||
@@ -0,0 +1,16 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.create_fcm_provider(
|
||||
provider_id = '<PROVIDER_ID>',
|
||||
name = '<NAME>',
|
||||
service_account_json = {}, # optional
|
||||
enabled = False # optional
|
||||
)
|
||||
@@ -0,0 +1,19 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.create_sms(
|
||||
message_id = '<MESSAGE_ID>',
|
||||
content = '<CONTENT>',
|
||||
topics = [], # optional
|
||||
users = [], # optional
|
||||
targets = [], # optional
|
||||
draft = False, # optional
|
||||
scheduled_at = '' # optional
|
||||
)
|
||||
@@ -0,0 +1,26 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.create_smtp_provider(
|
||||
provider_id = '<PROVIDER_ID>',
|
||||
name = '<NAME>',
|
||||
host = '<HOST>',
|
||||
port = 1, # optional
|
||||
username = '<USERNAME>', # optional
|
||||
password = '<PASSWORD>', # optional
|
||||
encryption = SmtpEncryption.NONE, # optional
|
||||
auto_tls = False, # optional
|
||||
mailer = '<MAILER>', # optional
|
||||
from_name = '<FROM_NAME>', # optional
|
||||
from_email = 'email@example.com', # optional
|
||||
reply_to_name = '<REPLY_TO_NAME>', # optional
|
||||
reply_to_email = 'email@example.com', # optional
|
||||
enabled = False # optional
|
||||
)
|
||||
@@ -0,0 +1,20 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.update_apns_provider(
|
||||
provider_id = '<PROVIDER_ID>',
|
||||
name = '<NAME>', # optional
|
||||
enabled = False, # optional
|
||||
auth_key = '<AUTH_KEY>', # optional
|
||||
auth_key_id = '<AUTH_KEY_ID>', # optional
|
||||
team_id = '<TEAM_ID>', # optional
|
||||
bundle_id = '<BUNDLE_ID>', # optional
|
||||
sandbox = False # optional
|
||||
)
|
||||
@@ -0,0 +1,16 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.update_fcm_provider(
|
||||
provider_id = '<PROVIDER_ID>',
|
||||
name = '<NAME>', # optional
|
||||
enabled = False, # optional
|
||||
service_account_json = {} # optional
|
||||
)
|
||||
@@ -0,0 +1,19 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.update_sms(
|
||||
message_id = '<MESSAGE_ID>',
|
||||
topics = [], # optional
|
||||
users = [], # optional
|
||||
targets = [], # optional
|
||||
content = '<CONTENT>', # optional
|
||||
draft = False, # optional
|
||||
scheduled_at = '' # optional
|
||||
)
|
||||
@@ -0,0 +1,26 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.messaging import Messaging
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
messaging = Messaging(client)
|
||||
|
||||
result = messaging.update_smtp_provider(
|
||||
provider_id = '<PROVIDER_ID>',
|
||||
name = '<NAME>', # optional
|
||||
host = '<HOST>', # optional
|
||||
port = 1, # optional
|
||||
username = '<USERNAME>', # optional
|
||||
password = '<PASSWORD>', # optional
|
||||
encryption = SmtpEncryption.NONE, # optional
|
||||
auto_tls = False, # optional
|
||||
mailer = '<MAILER>', # optional
|
||||
from_name = '<FROM_NAME>', # optional
|
||||
from_email = 'email@example.com', # optional
|
||||
reply_to_name = '<REPLY_TO_NAME>', # optional
|
||||
reply_to_email = '<REPLY_TO_EMAIL>', # optional
|
||||
enabled = False # optional
|
||||
)
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_boolean_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_datetime_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_email_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_enum_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_float_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
from appwrite.enums import IndexType
|
||||
|
||||
client = Client()
|
||||
@@ -7,7 +7,7 @@ client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
client.set_project('<YOUR_PROJECT_ID>') # Your project ID
|
||||
client.set_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_index(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_integer_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_ip_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
from appwrite.enums import RelationshipType
|
||||
|
||||
client = Client()
|
||||
@@ -7,7 +7,7 @@ client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
client.set_project('<YOUR_PROJECT_ID>') # Your project ID
|
||||
client.set_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_relationship_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_row(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_rows(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_string_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_table(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create_url_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.create(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.decrement_row_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.delete_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.delete_index(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.delete_row(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.delete_rows(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.delete_table(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.delete(
|
||||
database_id = '<DATABASE_ID>'
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.get_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.get_index(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.get_row(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.get_table(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.get(
|
||||
database_id = '<DATABASE_ID>'
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.increment_row_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.list_columns(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.list_indexes(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.list_rows(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.list_tables(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.list(
|
||||
queries = [], # optional
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_boolean_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_datetime_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_email_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_enum_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_float_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_integer_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_ip_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_relationship_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_row(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_rows(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_string_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_table(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update_url_column(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.update(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.upsert_row(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.tables_db import TablesDb
|
||||
from appwrite.services.tables_db import TablesDB
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
tables_db = TablesDb(client)
|
||||
tables_db = TablesDB(client)
|
||||
|
||||
result = tables_db.upsert_rows(
|
||||
database_id = '<DATABASE_ID>',
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.users import Users
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
users = Users(client)
|
||||
|
||||
result = users.create_mfa_recovery_codes(
|
||||
user_id = '<USER_ID>'
|
||||
)
|
||||
@@ -0,0 +1,15 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.users import Users
|
||||
from appwrite.enums import AuthenticatorType
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
users = Users(client)
|
||||
|
||||
result = users.delete_mfa_authenticator(
|
||||
user_id = '<USER_ID>',
|
||||
type = AuthenticatorType.TOTP
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.users import Users
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
users = Users(client)
|
||||
|
||||
result = users.get_mfa_recovery_codes(
|
||||
user_id = '<USER_ID>'
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.users import Users
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
users = Users(client)
|
||||
|
||||
result = users.list_mfa_factors(
|
||||
user_id = '<USER_ID>'
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.users import Users
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
users = Users(client)
|
||||
|
||||
result = users.update_mfa_recovery_codes(
|
||||
user_id = '<USER_ID>'
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.users import Users
|
||||
|
||||
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_key('<YOUR_API_KEY>') # Your secret API key
|
||||
|
||||
users = Users(client)
|
||||
|
||||
result = users.update_mfa(
|
||||
user_id = '<USER_ID>',
|
||||
mfa = False
|
||||
)
|
||||
Reference in new issue
Block a user