Skip to content

Commit 3455cef

Browse files
Merge pull request #32 from appwrite/dev
feat: release 1.4.x
2 parents cb25bce + 11a0d4b commit 3455cef

File tree

372 files changed

+2013
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+2013
-745
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
![Maven Central](https://img.shields.io/maven-central/v/io.appwrite/sdk-for-kotlin.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-kotlin.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.3.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.4.0-blue.svg?style=flat-square)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.3.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
9+
**This SDK is compatible with Appwrite server version 1.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
1010

1111
> This is the Kotlin SDK for integrating with Appwrite from your Kotlin server-side code. If you're looking for the Android SDK you should check [appwrite/sdk-for-android](https://github.com/appwrite/sdk-for-android)
1212
@@ -39,7 +39,7 @@ repositories {
3939
Next, add the dependency to your project's `build.gradle(.kts)` file:
4040

4141
```groovy
42-
implementation("io.appwrite:sdk-for-kotlin:2.0.0")
42+
implementation("io.appwrite:sdk-for-kotlin:3.0.0")
4343
```
4444

4545
### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
5050
<dependency>
5151
<groupId>io.appwrite</groupId>
5252
<artifactId>sdk-for-kotlin</artifactId>
53-
<version>2.0.0</version>
53+
<version>3.0.0</version>
5454
</dependency>
5555
</dependencies>
5656
```

docs/examples/java/account/create-phone-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/create-recovery.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/create-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("5df5acd0d48c2") // Your project ID
8+
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
9+
10+
Account account = new Account(client);
11+
12+
account.deleteIdentity(
13+
"[IDENTITY_ID]"
14+
new CoroutineCallback<>((result, error) -> {
15+
if (error != null) {
16+
error.printStackTrace();
17+
return;
18+
}
19+
20+
System.out.println(result);
21+
})
22+
);

docs/examples/java/account/delete-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/delete-sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/get-prefs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/get-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/get.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("5df5acd0d48c2") // Your project ID
8+
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
9+
10+
Account account = new Account(client);
11+
12+
account.listIdentities(
13+
new CoroutineCallback<>((result, error) -> {
14+
if (error != null) {
15+
error.printStackTrace();
16+
return;
17+
}
18+
19+
System.out.println(result);
20+
})
21+
);

docs/examples/java/account/list-logs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/list-sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-email.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-name.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-password.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-phone-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-phone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-prefs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-recovery.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/account/update-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

docs/examples/java/avatars/get-browser.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/avatars/get-credit-card.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/avatars/get-favicon.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/avatars/get-flag.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/avatars/get-image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/avatars/get-initials.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/avatars/get-q-r.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-boolean-attribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-collection.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-datetime-attribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-document.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-email-attribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-enum-attribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-float-attribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

docs/examples/java/databases/create-index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44

55
Client client = new Client()
6-
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
6+
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
88
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

0 commit comments

Comments
 (0)