Skip to content

Commit

Permalink
fix readmes and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jan 4, 2022
1 parent 3ab9825 commit e26caf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Once your SDK object is set, create any of the Appwrite service objects and choo
```ruby
users = Appwrite::Users.new(client);

result = users.create(email: '[email protected]', password: 'password');
result = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password');
```

### Full Example
Expand All @@ -63,7 +63,7 @@ client

users = Appwrite::Users.new(client);

result = users.create(email: '[email protected]', password: 'password');
result = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password');
```

### Error Handling
Expand All @@ -73,7 +73,7 @@ The Appwrite Ruby SDK raises `Appwrite::Exception` object with `message`, `code`
users = Appwrite::Users.new(client);

begin
result = users.create(email: '[email protected]', password: 'password');
result = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password');
rescue Appwrite::Exception => error
puts error.message
end
Expand Down

0 comments on commit e26caf1

Please sign in to comment.