diff --git a/README.md b/README.md index 29cba33..1cb2a3f 100644 --- a/README.md +++ b/README.md @@ -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@example.com', password: 'password'); +result = users.create(userId: '[USER_ID]', email: 'email@example.com', password: 'password'); ``` ### Full Example @@ -63,7 +63,7 @@ client users = Appwrite::Users.new(client); -result = users.create(email: 'email@example.com', password: 'password'); +result = users.create(userId: '[USER_ID]', email: 'email@example.com', password: 'password'); ``` ### Error Handling @@ -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@example.com', password: 'password'); + result = users.create(userId: '[USER_ID]', email: 'email@example.com', password: 'password'); rescue Appwrite::Exception => error puts error.message end