Skip to content

Commit 42f7c02

Browse files
committed
Release candidate for 1.5.x
1 parent 85d50f1 commit 42f7c02

25 files changed

+112
-144
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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:5.0.0-rc.5")
42+
implementation("io.appwrite:sdk-for-kotlin:5.0.0-rc.6")
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>5.0.0-rc.5</version>
53+
<version>5.0.0-rc.6</version>
5454
</dependency>
5555
</dependencies>
5656
```

docs/examples/java/account/create-o-auth2session.md renamed to docs/examples/java/account/update-phone-session.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
4-
import io.appwrite.enums.OAuthProvider;
54

65
Client client = new Client()
76
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
87
.setProject("5df5acd0d48c2"); // Your project ID
98

109
Account account = new Account(client);
1110

12-
account.createOAuth2Session(
13-
OAuthProvider.AMAZON, // provider
14-
"https://example.com", // success (optional)
15-
"https://example.com", // failure (optional)
16-
listOf(), // scopes (optional)
11+
account.updatePhoneSession(
12+
"<USER_ID>", // userId
13+
"<SECRET>", // secret
1714
new CoroutineCallback<>((result, error) -> {
1815
if (error != null) {
1916
error.printStackTrace();

docs/examples/java/messaging/create-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ messaging.createEmail(
1919
listOf(), // cc (optional)
2020
listOf(), // bcc (optional)
2121
listOf(), // attachments (optional)
22-
MessageStatus.DRAFT, // status (optional)
22+
false, // draft (optional)
2323
false, // html (optional)
2424
"", // scheduledAt (optional)
2525
new CoroutineCallback<>((result, error) -> {

docs/examples/java/messaging/create-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ messaging.createPush(
2424
"<COLOR>", // color (optional)
2525
"<TAG>", // tag (optional)
2626
"<BADGE>", // badge (optional)
27-
MessageStatus.DRAFT, // status (optional)
27+
false, // draft (optional)
2828
"", // scheduledAt (optional)
2929
new CoroutineCallback<>((result, error) -> {
3030
if (error != null) {

docs/examples/java/messaging/create-sms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ messaging.createSms(
1515
listOf(), // topics (optional)
1616
listOf(), // users (optional)
1717
listOf(), // targets (optional)
18-
MessageStatus.DRAFT, // status (optional)
18+
false, // draft (optional)
1919
"", // scheduledAt (optional)
2020
new CoroutineCallback<>((result, error) -> {
2121
if (error != null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ messaging.updateEmail(
1616
listOf(), // targets (optional)
1717
"<SUBJECT>", // subject (optional)
1818
"<CONTENT>", // content (optional)
19-
MessageStatus.DRAFT, // status (optional)
19+
false, // draft (optional)
2020
false, // html (optional)
2121
listOf(), // cc (optional)
2222
listOf(), // bcc (optional)

docs/examples/java/messaging/update-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ messaging.updatePush(
2424
"<COLOR>", // color (optional)
2525
"<TAG>", // tag (optional)
2626
0, // badge (optional)
27-
MessageStatus.DRAFT, // status (optional)
27+
false, // draft (optional)
2828
"", // scheduledAt (optional)
2929
new CoroutineCallback<>((result, error) -> {
3030
if (error != null) {

docs/examples/java/messaging/update-sms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ messaging.updateSms(
1515
listOf(), // users (optional)
1616
listOf(), // targets (optional)
1717
"<CONTENT>", // content (optional)
18-
MessageStatus.DRAFT, // status (optional)
18+
false, // draft (optional)
1919
"", // scheduledAt (optional)
2020
new CoroutineCallback<>((result, error) -> {
2121
if (error != null) {

docs/examples/java/users/delete-authenticator.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Users users = new Users(client);
1313
users.deleteAuthenticator(
1414
"<USER_ID>", // userId
1515
AuthenticatorType.TOTP, // type
16-
"<OTP>", // otp
1716
new CoroutineCallback<>((result, error) -> {
1817
if (error != null) {
1918
error.printStackTrace();
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import io.appwrite.Client
22
import io.appwrite.coroutines.CoroutineCallback
33
import io.appwrite.services.Account
4-
import io.appwrite.enums.OAuthProvider
54

65
val client = Client()
76
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
87
.setProject("5df5acd0d48c2") // Your project ID
98

109
val account = Account(client)
1110

12-
account.createOAuth2Session(
13-
provider = OAuthProvider.AMAZON,
14-
success = "https://example.com", // optional
15-
failure = "https://example.com", // optional
16-
scopes = listOf() // optional
11+
val response = account.updatePhoneSession(
12+
userId = "<USER_ID>",
13+
secret = "<SECRET>"
1714
)

0 commit comments

Comments
 (0)