1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Update android GETTING_STARTED.md

This commit is contained in:
Pratik Gupta 2023-10-17 01:07:53 +05:30 committed by GitHub
parent eaba2eb7e5
commit 8cc1c0d6dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,8 +52,10 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos
val account = Account(client)
val response = account.create(
ID.unique(),
"email@example.com",
"password"
email = 'email@example.com',
phone = '+123456789',
password = 'password',
name = "Walter O'Brien"
)
```
@ -72,8 +74,10 @@ val client = Client(context)
val account = Account(client)
val user = account.create(
ID.unique(),
"email@example.com",
"password"
email = 'email@example.com',
phone = '+123456789',
password = 'password',
name = "Walter O'Brien"
)
```
@ -82,7 +86,7 @@ The Appwrite Android SDK raises an `AppwriteException` object with `message`, `c
```kotlin
try {
var user = account.create(ID.unique(), "email@example.com", "password")
var user = account.create(ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien")
Log.d("Appwrite user", user.toMap())
} catch(e : AppwriteException) {
e.printStackTrace()
@ -94,4 +98,4 @@ You can use the following resources to learn more and get help
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-android)
- 📜 [Appwrite Docs](https://appwrite.io/docs)
- 💬 [Discord Community](https://appwrite.io/discord)
- 🚂 [Appwrite Android Playground](https://github.com/appwrite/playground-for-android)
- 🚂 [Appwrite Android Playground](https://github.com/appwrite/playground-for-android)