fix: hide services from server/client sdks

This commit is contained in:
Torsten Dittmann
2023-08-30 13:28:43 +02:00
parent 17248b38de
commit e507fb6715
130 changed files with 18 additions and 1921 deletions
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const project = new sdk.Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = project.createVariable('[KEY]', '[VALUE]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const project = new sdk.Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = project.deleteVariable('[VARIABLE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const project = new sdk.Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = project.getVariable('[VARIABLE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const project = new sdk.Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = project.listVariables();
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const project = new sdk.Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = project.updateVariable('[VARIABLE_ID]', '[KEY]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const proxy = new sdk.Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = proxy.createRule('', 'api');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const proxy = new sdk.Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = proxy.deleteRule('[RULE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const proxy = new sdk.Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = proxy.getRule('[RULE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const proxy = new sdk.Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = proxy.listRules();
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,20 +0,0 @@
const sdk = require('node-appwrite');
// Init SDK
const client = new sdk.Client();
const proxy = new sdk.Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = proxy.updateRuleVerification('[RULE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});