1
0
Fork 0
mirror of synced 2024-05-17 11:12:41 +12:00

feat: release console sdk

This commit is contained in:
Torsten Dittmann 2024-03-08 10:38:19 +01:00
parent b8b3a69a55
commit 19555651a5
3 changed files with 29 additions and 2 deletions

View file

@ -185,7 +185,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
'version' => '0.6.0-rc.18',
'version' => '0.6.0',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
@ -196,7 +196,7 @@ return [
'prism' => 'javascript',
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
'gitBranch' => '1.5.x',
'gitBranch' => 'main',
'gitRepoName' => 'sdk-for-console',
'gitUserName' => 'appwrite',
],

View file

@ -0,0 +1,13 @@
import { Client, Health } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
const health = new Health(client);
const result = await health.getQueueUsageDump(
null // threshold (optional)
);
console.log(response);

View file

@ -0,0 +1,14 @@
import { Client, Projects } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
const projects = new Projects(client);
const result = await projects.updateApiStatusAll(
'<PROJECT_ID>', // projectId
false // status
);
console.log(response);