2024-02-05 12:40:51 +00:00
|
|
|
from appwrite.client import Client
|
|
|
|
|
|
|
|
|
|
client = Client()
|
2024-02-21 11:31:50 +00:00
|
|
|
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
|
|
|
|
client.set_project('5df5acd0d48c2') # Your project ID
|
|
|
|
|
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
2024-02-05 12:40:51 +00:00
|
|
|
|
|
|
|
|
users = Users(client)
|
|
|
|
|
|
2024-02-21 11:31:50 +00:00
|
|
|
result = users.create_scrypt_user(
|
2024-02-24 11:34:42 +00:00
|
|
|
user_id = '<USER_ID>',
|
2024-02-21 11:31:50 +00:00
|
|
|
email = 'email@example.com',
|
|
|
|
|
password = 'password',
|
2024-02-24 11:34:42 +00:00
|
|
|
password_salt = '<PASSWORD_SALT>',
|
2024-02-21 11:31:50 +00:00
|
|
|
password_cpu = None,
|
|
|
|
|
password_memory = None,
|
|
|
|
|
password_parallel = None,
|
|
|
|
|
password_length = None,
|
2024-02-24 11:34:42 +00:00
|
|
|
name = '<NAME>' # optional
|
2024-02-21 11:31:50 +00:00
|
|
|
)
|