From 6eb563530c279045cf9917ec227035295cc74e37 Mon Sep 17 00:00:00 2001 From: Pratik Gupta <91310568+GuptaPratik02@users.noreply.github.com> Date: Fri, 6 Oct 2023 17:34:02 +0530 Subject: [PATCH] Update README.md Fixed the bug mentioned in the issue by updating README.md file - https://github.com/appwrite/sdk-for-python/issues/62 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86bb1c4..6d9fa8d 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Once your SDK object is set, create any of the Appwrite service objects and choo ```python users = Users(client) -result = users.create('[USER_ID]', 'email@example.com', 'password') +result = users.create(ID.unique(), email = 'email1@example.com', phone = '+123456789', password = 'password', name = 'user1') ``` ### Full Example @@ -66,7 +66,7 @@ client = Client() users = Users(client) -result = users.create(ID.unique(), 'email@example.com', 'password') +result = users.create(ID.unique(), email = 'email1@example.com', phone = '+123456789', password = 'password', name = 'user1') ``` ### Error Handling @@ -75,7 +75,7 @@ The Appwrite Python SDK raises `AppwriteException` object with `message`, `code` ```python users = Users(client) try: - result = users.create(ID.unique(), 'email@example.com', 'password') + result = users.create(ID.unique(), email = 'email1@example.com', phone = '+123456789', password = 'password', name = 'user1') except AppwriteException as e: print(e.message) ```