Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite health get-console-pausing
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```bash
appwrite projects create-schedule \
--project-id <PROJECT_ID> \
--resource-type function \
--resource-id <RESOURCE_ID> \
--schedule ''
```
5 changes: 5 additions & 0 deletions examples/1.8.x/console-cli/examples/projects/get-schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite projects get-schedule \
--project-id <PROJECT_ID> \
--schedule-id <SCHEDULE_ID>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite projects list-schedules \
--project-id <PROJECT_ID>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite projects update-console-access \
--project-id <PROJECT_ID>
```
5 changes: 5 additions & 0 deletions examples/1.8.x/console-cli/examples/projects/update-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite projects update-status \
--project-id <PROJECT_ID> \
--status active
```
25 changes: 25 additions & 0 deletions examples/1.8.x/console-web/examples/domains/create-purchase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
```javascript
import { Client, Domains } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const domains = new Domains(client);

const result = await domains.createPurchase({
domain: '',
teamId: '<TEAM_ID>',
firstName: '<FIRST_NAME>',
lastName: '<LAST_NAME>',
email: 'email@example.com',
phone: '+12065550100',
billingAddressId: '<BILLING_ADDRESS_ID>',
paymentMethodId: '<PAYMENT_METHOD_ID>',
addressLine3: '<ADDRESS_LINE3>', // optional
companyName: '<COMPANY_NAME>', // optional
periodYears: 1 // optional
});

console.log(result);
```
16 changes: 16 additions & 0 deletions examples/1.8.x/console-web/examples/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```javascript
import { Client, Health } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const health = new Health(client);

const result = await health.getConsolePausing({
threshold: null, // optional
inactivityDays: null // optional
});

console.log(result);
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const client = new Client()
const organizations = new Organizations(client);

const result = await organizations.getScopes({
organizationId: '<ORGANIZATION_ID>'
organizationId: '<ORGANIZATION_ID>',
projectId: '<PROJECT_ID>' // optional
});

console.log(result);
Expand Down
20 changes: 20 additions & 0 deletions examples/1.8.x/console-web/examples/projects/create-schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```javascript
import { Client, Projects, ResourceType } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.createSchedule({
projectId: '<PROJECT_ID>',
resourceType: ResourceType.Function,
resourceId: '<RESOURCE_ID>',
schedule: '',
active: false, // optional
data: {} // optional
});

console.log(result);
```
16 changes: 16 additions & 0 deletions examples/1.8.x/console-web/examples/projects/get-schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.getSchedule({
projectId: '<PROJECT_ID>',
scheduleId: '<SCHEDULE_ID>'
});

console.log(result);
```
17 changes: 17 additions & 0 deletions examples/1.8.x/console-web/examples/projects/list-schedules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.listSchedules({
projectId: '<PROJECT_ID>',
queries: [], // optional
total: false // optional
});

console.log(result);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.updateConsoleAccess({
projectId: '<PROJECT_ID>'
});

console.log(result);
```
16 changes: 16 additions & 0 deletions examples/1.8.x/console-web/examples/projects/update-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```javascript
import { Client, Projects, Status } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.updateStatus({
projectId: '<PROJECT_ID>',
status: Status.Active
});

console.log(result);
```
15 changes: 15 additions & 0 deletions examples/1.8.x/server-dart/examples/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```dart
import 'package:dart_appwrite/dart_appwrite.dart';

Client client = Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key

Health health = Health(client);

HealthStatus result = await health.getConsolePausing(
threshold: 0, // (optional)
inactivityDays: 0, // (optional)
);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```csharp
using Appwrite;
using Appwrite.Models;
using Appwrite.Services;

Client client = new Client()
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("<YOUR_PROJECT_ID>") // Your project ID
.SetKey("<YOUR_API_KEY>"); // Your secret API key

Health health = new Health(client);

HealthStatus result = await health.GetConsolePausing(
threshold: 0, // optional
inactivityDays: 0 // optional
);```
22 changes: 22 additions & 0 deletions examples/1.8.x/server-go/examples/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
```go
package main

import (
"fmt"
"github.com/appwrite/sdk-for-go/client"
"github.com/appwrite/sdk-for-go/health"
)

client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1")
client.WithProject("<YOUR_PROJECT_ID>")
client.WithKey("<YOUR_API_KEY>")
)

service := health.New(client)

response, error := service.GetConsolePausing(
health.WithGetConsolePausingThreshold(0),
health.WithGetConsolePausingInactivityDays(0),
)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```graphql
```
26 changes: 26 additions & 0 deletions examples/1.8.x/server-kotlin/java/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
```java
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Health;

Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>") // Your project ID
.setKey("<YOUR_API_KEY>"); // Your secret API key

Health health = new Health(client);

health.getConsolePausing(
0, // threshold (optional)
0, // inactivityDays (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

System.out.println(result);
})
);

```
17 changes: 17 additions & 0 deletions examples/1.8.x/server-kotlin/kotlin/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```kotlin
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Health

val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>") // Your project ID
.setKey("<YOUR_API_KEY>") // Your secret API key

val health = Health(client)

val response = health.getConsolePausing(
threshold = 0, // optional
inactivityDays = 0 // optional
)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key

const health = new sdk.Health(client);

const result = await health.getConsolePausing({
threshold: null, // optional
inactivityDays: null // optional
});
```
17 changes: 17 additions & 0 deletions examples/1.8.x/server-php/examples/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```php
<?php

use Appwrite\Client;
use Appwrite\Services\Health;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key

$health = new Health($client);

$result = $health->getConsolePausing(
threshold: null, // optional
inactivityDays: null // optional
);```
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```python
from appwrite.client import Client
from appwrite.services.health import Health

client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('<YOUR_PROJECT_ID>') # Your project ID
client.set_key('<YOUR_API_KEY>') # Your secret API key

health = Health(client)

result = health.get_console_pausing(
threshold = None, # optional
inactivity_days = None # optional
)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```http
GET /v1/health/console-pausing HTTP/1.1
Host: cloud.appwrite.io
X-Appwrite-Response-Format: 1.8.0
X-Appwrite-Project: <YOUR_PROJECT_ID>
X-Appwrite-Key: <YOUR_API_KEY>
```
17 changes: 17 additions & 0 deletions examples/1.8.x/server-ruby/examples/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```ruby
require 'appwrite'

include Appwrite

client = Client.new
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
.set_project('<YOUR_PROJECT_ID>') # Your project ID
.set_key('<YOUR_API_KEY>') # Your secret API key

health = Health.new(client)

result = health.get_console_pausing(
threshold: null, # optional
inactivity_days: null # optional
)
```
16 changes: 16 additions & 0 deletions examples/1.8.x/server-swift/examples/health/get-console-pausing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```swift
import Appwrite

let client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>") // Your project ID
.setKey("<YOUR_API_KEY>") // Your secret API key

let health = Health(client)

let healthStatus = try await health.getConsolePausing(
threshold: 0, // optional
inactivityDays: 0 // optional
)

```
Loading