mirror of
https://github.com/appwrite/sdk-for-android.git
synced 2026-04-07 19:17:49 +00:00
updated specs
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Account;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Account account = new Account(client);
|
||||
|
||||
account.createBillingAddress(
|
||||
"<COUNTRY>", // country
|
||||
"<CITY>", // city
|
||||
"<STREET_ADDRESS>", // streetAddress
|
||||
"<ADDRESS_LINE2>", // addressLine2 (optional)
|
||||
"<STATE>", // state (optional)
|
||||
"<POSTAL_CODE>", // postalCode (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,24 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Account;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Account account = new Account(client);
|
||||
|
||||
account.deleteBillingAddress(
|
||||
"<BILLING_ADDRESS_ID>", // billingAddressId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,24 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Account;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Account account = new Account(client);
|
||||
|
||||
account.getBillingAddress(
|
||||
"<BILLING_ADDRESS_ID>", // billingAddressId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,24 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Account;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Account account = new Account(client);
|
||||
|
||||
account.listBillingAddresses(
|
||||
List.of(), // queries (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,30 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Account;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Account account = new Account(client);
|
||||
|
||||
account.updateBillingAddress(
|
||||
"<BILLING_ADDRESS_ID>", // billingAddressId
|
||||
"<COUNTRY>", // country
|
||||
"<CITY>", // city
|
||||
"<STREET_ADDRESS>", // streetAddress
|
||||
"<ADDRESS_LINE2>", // addressLine2 (optional)
|
||||
"<STATE>", // state (optional)
|
||||
"<POSTAL_CODE>", // postalCode (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,28 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Organizations;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Organizations organizations = new Organizations(client);
|
||||
|
||||
organizations.createDowngradeFeedback(
|
||||
"<ORGANIZATION_ID>", // organizationId
|
||||
"<REASON>", // reason
|
||||
"<MESSAGE>", // message
|
||||
"<FROM_PLAN_ID>", // fromPlanId
|
||||
"<TO_PLAN_ID>", // toPlanId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,24 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Organizations;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Organizations organizations = new Organizations(client);
|
||||
|
||||
organizations.delete(
|
||||
"<ORGANIZATION_ID>", // organizationId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,24 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Organizations;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Organizations organizations = new Organizations(client);
|
||||
|
||||
organizations.estimationDeleteOrganization(
|
||||
"<ORGANIZATION_ID>", // organizationId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,25 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Organizations;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Organizations organizations = new Organizations(client);
|
||||
|
||||
organizations.getBillingAddress(
|
||||
"<ORGANIZATION_ID>", // organizationId
|
||||
"<BILLING_ADDRESS_ID>", // billingAddressId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,25 +0,0 @@
|
||||
```java
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Organizations;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||
|
||||
Organizations organizations = new Organizations(client);
|
||||
|
||||
organizations.getPaymentMethod(
|
||||
"<ORGANIZATION_ID>", // organizationId
|
||||
"<PAYMENT_METHOD_ID>", // paymentMethodId
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.d("Appwrite", result.toString());
|
||||
})
|
||||
);
|
||||
|
||||
```
|
||||
@@ -1,20 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Account
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val account = Account(client)
|
||||
|
||||
val result = account.createBillingAddress(
|
||||
country = "<COUNTRY>",
|
||||
city = "<CITY>",
|
||||
streetAddress = "<STREET_ADDRESS>",
|
||||
addressLine2 = "<ADDRESS_LINE2>", // (optional)
|
||||
state = "<STATE>", // (optional)
|
||||
postalCode = "<POSTAL_CODE>", // (optional)
|
||||
)
|
||||
```
|
||||
@@ -1,15 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Account
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val account = Account(client)
|
||||
|
||||
val result = account.deleteBillingAddress(
|
||||
billingAddressId = "<BILLING_ADDRESS_ID>",
|
||||
)
|
||||
```
|
||||
@@ -1,15 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Account
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val account = Account(client)
|
||||
|
||||
val result = account.getBillingAddress(
|
||||
billingAddressId = "<BILLING_ADDRESS_ID>",
|
||||
)
|
||||
```
|
||||
@@ -1,15 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Account
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val account = Account(client)
|
||||
|
||||
val result = account.listBillingAddresses(
|
||||
queries = listOf(), // (optional)
|
||||
)
|
||||
```
|
||||
@@ -1,21 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Account
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val account = Account(client)
|
||||
|
||||
val result = account.updateBillingAddress(
|
||||
billingAddressId = "<BILLING_ADDRESS_ID>",
|
||||
country = "<COUNTRY>",
|
||||
city = "<CITY>",
|
||||
streetAddress = "<STREET_ADDRESS>",
|
||||
addressLine2 = "<ADDRESS_LINE2>", // (optional)
|
||||
state = "<STATE>", // (optional)
|
||||
postalCode = "<POSTAL_CODE>", // (optional)
|
||||
)
|
||||
```
|
||||
@@ -1,19 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Organizations
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val organizations = Organizations(client)
|
||||
|
||||
val result = organizations.createDowngradeFeedback(
|
||||
organizationId = "<ORGANIZATION_ID>",
|
||||
reason = "<REASON>",
|
||||
message = "<MESSAGE>",
|
||||
fromPlanId = "<FROM_PLAN_ID>",
|
||||
toPlanId = "<TO_PLAN_ID>",
|
||||
)
|
||||
```
|
||||
@@ -1,15 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Organizations
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val organizations = Organizations(client)
|
||||
|
||||
val result = organizations.delete(
|
||||
organizationId = "<ORGANIZATION_ID>",
|
||||
)
|
||||
```
|
||||
@@ -1,15 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Organizations
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val organizations = Organizations(client)
|
||||
|
||||
val result = organizations.estimationDeleteOrganization(
|
||||
organizationId = "<ORGANIZATION_ID>",
|
||||
)
|
||||
```
|
||||
@@ -1,16 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Organizations
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val organizations = Organizations(client)
|
||||
|
||||
val result = organizations.getBillingAddress(
|
||||
organizationId = "<ORGANIZATION_ID>",
|
||||
billingAddressId = "<BILLING_ADDRESS_ID>",
|
||||
)
|
||||
```
|
||||
@@ -1,16 +0,0 @@
|
||||
```kotlin
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Organizations
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
|
||||
val organizations = Organizations(client)
|
||||
|
||||
val result = organizations.getPaymentMethod(
|
||||
organizationId = "<ORGANIZATION_ID>",
|
||||
paymentMethodId = "<PAYMENT_METHOD_ID>",
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user