Skip to content

Commit 07bf470

Browse files
committed
Fix casing
1 parent bbe7107 commit 07bf470

Some content is hidden

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

56 files changed

+852
-142
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
import io.appwrite.enums.AuthenticatorType;
5+
6+
Client client = new Client(context)
7+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
8+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
9+
10+
Account account = new Account(client);
11+
12+
account.createMFAAuthenticator(
13+
AuthenticatorType.TOTP, // type
14+
new CoroutineCallback<>((result, error) -> {
15+
if (error != null) {
16+
error.printStackTrace();
17+
return;
18+
}
19+
20+
Log.d("Appwrite", result.toString());
21+
})
22+
);
23+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
import io.appwrite.enums.AuthenticationFactor;
5+
6+
Client client = new Client(context)
7+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
8+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
9+
10+
Account account = new Account(client);
11+
12+
account.createMFAChallenge(
13+
AuthenticationFactor.EMAIL, // factor
14+
new CoroutineCallback<>((result, error) -> {
15+
if (error != null) {
16+
error.printStackTrace();
17+
return;
18+
}
19+
20+
Log.d("Appwrite", result.toString());
21+
})
22+
);
23+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Account account = new Account(client);
10+
11+
account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
12+
if (error != null) {
13+
error.printStackTrace();
14+
return;
15+
}
16+
17+
Log.d("Appwrite", result.toString());
18+
}));
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
import io.appwrite.enums.AuthenticatorType;
5+
6+
Client client = new Client(context)
7+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
8+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
9+
10+
Account account = new Account(client);
11+
12+
account.deleteMFAAuthenticator(
13+
AuthenticatorType.TOTP, // type
14+
new CoroutineCallback<>((result, error) -> {
15+
if (error != null) {
16+
error.printStackTrace();
17+
return;
18+
}
19+
20+
Log.d("Appwrite", result.toString());
21+
})
22+
);
23+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Account account = new Account(client);
10+
11+
account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
12+
if (error != null) {
13+
error.printStackTrace();
14+
return;
15+
}
16+
17+
Log.d("Appwrite", result.toString());
18+
}));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Account account = new Account(client);
10+
11+
account.listMFAFactors(new CoroutineCallback<>((result, error) -> {
12+
if (error != null) {
13+
error.printStackTrace();
14+
return;
15+
}
16+
17+
Log.d("Appwrite", result.toString());
18+
}));
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
import io.appwrite.enums.AuthenticatorType;
5+
6+
Client client = new Client(context)
7+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
8+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
9+
10+
Account account = new Account(client);
11+
12+
account.updateMFAAuthenticator(
13+
AuthenticatorType.TOTP, // type
14+
"<OTP>", // otp
15+
new CoroutineCallback<>((result, error) -> {
16+
if (error != null) {
17+
error.printStackTrace();
18+
return;
19+
}
20+
21+
Log.d("Appwrite", result.toString());
22+
})
23+
);
24+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Account account = new Account(client);
10+
11+
account.updateMFAChallenge(
12+
"<CHALLENGE_ID>", // challengeId
13+
"<OTP>", // otp
14+
new CoroutineCallback<>((result, error) -> {
15+
if (error != null) {
16+
error.printStackTrace();
17+
return;
18+
}
19+
20+
Log.d("Appwrite", result.toString());
21+
})
22+
);
23+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Account;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Account account = new Account(client);
10+
11+
account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
12+
if (error != null) {
13+
error.printStackTrace();
14+
return;
15+
}
16+
17+
Log.d("Appwrite", result.toString());
18+
}));

docs/examples/java/tablesdb/create-row.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
3-
import io.appwrite.services.TablesDb;
3+
import io.appwrite.services.TablesDB;
44

55
Client client = new Client(context)
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
88

9-
TablesDb tablesDb = new TablesDb(client);
9+
TablesDB tablesDB = new TablesDB(client);
1010

11-
tablesDb.createRow(
11+
tablesDB.createRow(
1212
"<DATABASE_ID>", // databaseId
1313
"<TABLE_ID>", // tableId
1414
"<ROW_ID>", // rowId

0 commit comments

Comments
 (0)