Update kotlin GETTING_STARTED.md
This commit is contained in:
parent
0d314df561
commit
7d2b4503e3
1 changed files with 12 additions and 6 deletions
|
@ -25,8 +25,10 @@ Once your SDK object is set, create any of the Appwrite service objects and choo
|
|||
val users = Users(client)
|
||||
val user = users.create(
|
||||
user = ID.unique(),
|
||||
email = "email@example.com",
|
||||
password = "password",
|
||||
email = 'email@example.com',
|
||||
phone = '+123456789',
|
||||
password = 'password',
|
||||
name = "Walter O'Brien"
|
||||
)
|
||||
```
|
||||
|
||||
|
@ -47,8 +49,10 @@ suspend fun main() {
|
|||
val users = Users(client)
|
||||
val user = users.create(
|
||||
user = ID.unique(),
|
||||
email = "email@example.com",
|
||||
password = "password",
|
||||
email = 'email@example.com',
|
||||
phone = '+123456789',
|
||||
password = 'password',
|
||||
name = "Walter O'Brien"
|
||||
)
|
||||
}
|
||||
```
|
||||
|
@ -67,8 +71,10 @@ suspend fun main() {
|
|||
try {
|
||||
val user = users.create(
|
||||
user = ID.unique(),
|
||||
email = "email@example.com",
|
||||
password = "password",
|
||||
email = 'email@example.com',
|
||||
phone = '+123456789',
|
||||
password = 'password',
|
||||
name = "Walter O'Brien"
|
||||
)
|
||||
} catch (e: AppwriteException) {
|
||||
e.printStackTrace()
|
||||
|
|
Loading…
Reference in a new issue