def create_user(email, password, name): global userId users = Users(client) print_green("Running Create User API") response = users.create(email, password, name) userId = response['$id'] print(response)
def list_user(): users = Users(client) print_green("Running List User API") response = users.list() print(response)
result = teams.create('testestet') result = teams.get('608278d80a78b') result = teams.update('608278d80a78b', 'asdasdasdasd') result avatars = Avatars(client) result = avatars.get_credit_card('amex') users = Users(client) result = users.create('*****@*****.**', '7984654654654') result = users.list() result result = users.get_sessions('60828a747b89f') result result = users.get_logs('60828a747b89f') import requests
from appwrite.services.users import Users from appwrite.services.avatars import Avatars from appwrite.services.teams import Teams client = Client() (client.set_endpoint('https://*****:*****@app.route("/") def home(): return render_template('home.html') @app.route("/add-team") def add_team(): result = users.get_sessions('6082912bc4797') result = teams.create_membership('608295cc1e2f3', '*****@*****.**',