Skip to content

Commit 7214677

Browse files
committed
Remove old name doc and test references
1 parent e6d64e3 commit 7214677

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

example.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ function getSSLPage($url) {
445445
<p>Initialize your SDK code with your project ID, which can be found in your project settings page.
446446
447447
```kotlin
448-
import io.appwrite.AppwriteClient
449-
import io.appwrite.services.AccountService
448+
import io.appwrite.Client
449+
import io.appwrite.services.Account
450450
451-
val client = AppwriteClient(context)
451+
val client = Client(context)
452452
.setEndpoint(\"https://[HOSTNAME_OR_IP]/v1\") // Your API Endpoint
453453
.setProject(\"5df5acd0d48c2\") // Your project ID
454454
.setSelfSigned(true) // Remove in production
@@ -464,7 +464,7 @@ function getSSLPage($url) {
464464
465465
```kotlin
466466
// Register User
467-
val accountService = AccountService(client)
467+
val accountService = Account(client)
468468
val user = accountService.create(
469469
470470
\"password\"
@@ -474,15 +474,15 @@ function getSSLPage($url) {
474474
### Full Example
475475
476476
```kotlin
477-
import io.appwrite.AppwriteClient
478-
import io.appwrite.services.AccountService
477+
import io.appwrite.Client
478+
import io.appwrite.services.Account
479479
480-
val client = AppwriteClient(context)
480+
val client = Client(context)
481481
.setEndpoint(\"https://[HOSTNAME_OR_IP]/v1\") // Your API Endpoint
482482
.setProject(\"5df5acd0d48c2\") // Your project ID
483483
.setSelfSigned(true) // Remove in production
484484
485-
val accountService = AccountService(client)
485+
val accountService = Account(client)
486486
val user = accountService.create(
487487
488488
\"password\"

tests/languages/kotlin/ServiceTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.appwrite.services
22

33
import com.google.gson.Gson
4-
import io.appwrite.AppwriteClient
4+
import io.appwrite.Client
55
import io.appwrite.Foo
66
import io.appwrite.Bar
77
import io.appwrite.General
@@ -16,7 +16,7 @@ class ServiceTest {
1616
@Throws(IOException::class)
1717
fun test() {
1818

19-
val client = AppwriteClient()
19+
val client = Client()
2020
val foo = Foo(client)
2121
val bar = Bar(client)
2222
val general = General(client)

0 commit comments

Comments
 (0)