1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

changes made android GETTING_STARTED.md

This commit is contained in:
Pratik Gupta 2023-10-17 18:02:37 +05:30 committed by GitHub
parent bb9dd4423d
commit 4b7c13d3e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,10 +52,10 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos
val account = Account(client) val account = Account(client)
val response = account.create( val response = account.create(
ID.unique(), ID.unique(),
email = 'email@example.com', 'email@example.com',
phone = '+123456789', '+123456789',
password = 'password', 'password',
name = "Walter O'Brien" "Walter O'Brien"
) )
``` ```
@ -74,10 +74,10 @@ val client = Client(context)
val account = Account(client) val account = Account(client)
val user = account.create( val user = account.create(
ID.unique(), ID.unique(),
email = 'email@example.com', 'email@example.com',
phone = '+123456789', '+123456789',
password = 'password', 'password',
name = "Walter O'Brien" "Walter O'Brien"
) )
``` ```
@ -86,7 +86,7 @@ The Appwrite Android SDK raises an `AppwriteException` object with `message`, `c
```kotlin ```kotlin
try { try {
var user = account.create(ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien") var user = account.create(ID.unique(),'email@example.com','+123456789','password',"Walter O'Brien")
Log.d("Appwrite user", user.toMap()) Log.d("Appwrite user", user.toMap())
} catch(e : AppwriteException) { } catch(e : AppwriteException) {
e.printStackTrace() e.printStackTrace()