mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update kotlin GETTING_STARTED.md
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user