Skip to content

Commit

Permalink
Update GETTING_STARTED.md
Browse files Browse the repository at this point in the history
Fixed the issue mentioned in sdk-for-python repository Issue - 62.
Issue link - appwrite/sdk-for-python#62
  • Loading branch information
GuptaPratik02 authored Oct 6, 2023
1 parent 8a4302f commit 93fa749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sdks/python/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 protected]', 'password')
result = users.create(ID.unique(), email = 'email1@example.com', phone = '+123456789', password = 'password', name = 'user1')
```

### Full Example
Expand All @@ -43,7 +43,7 @@ client = Client()

users = Users(client)

result = users.create(ID.unique(), '[email protected]', 'password')
result = users.create(ID.unique(), email = 'email1@example.com', phone = '+123456789', password = 'password', name = 'user1')
```

### Error Handling
Expand All @@ -52,7 +52,7 @@ The Appwrite Python SDK raises `AppwriteException` object with `message`, `code`
```python
users = Users(client)
try:
result = users.create(ID.unique(), '[email protected]', 'password')
result = users.create(ID.unique(), email = 'email1@example.com', phone = '+123456789', password = 'password', name = 'user1')
except AppwriteException as e:
print(e.message)
```
Expand Down

0 comments on commit 93fa749

Please sign in to comment.