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,24 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Project project = Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = project.createVariable(
key: '[KEY]',
value: '[VALUE]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,23 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Project project = Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = project.deleteVariable(
variableId: '[VARIABLE_ID]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,23 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Project project = Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = project.getVariable(
variableId: '[VARIABLE_ID]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,21 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Project project = Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = project.listVariables();
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,24 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Project project = Project(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = project.updateVariable(
variableId: '[VARIABLE_ID]',
key: '[KEY]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,24 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Proxy proxy = Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = proxy.createRule(
domain: '',
resourceType: 'api',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,23 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Proxy proxy = Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = proxy.deleteRule(
ruleId: '[RULE_ID]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,23 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Proxy proxy = Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = proxy.getRule(
ruleId: '[RULE_ID]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,22 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Proxy proxy = Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = proxy.listRules(
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,23 +0,0 @@
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
Proxy proxy = Proxy(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
Future result = proxy.updateRuleVerification(
ruleId: '[RULE_ID]',
);
result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = project.createVariable('[KEY]', '[VALUE]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = project.deleteVariable('[VARIABLE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = project.getVariable('[VARIABLE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = project.listVariables();
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = project.updateVariable('[VARIABLE_ID]', '[KEY]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = proxy.createRule('', 'api');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = proxy.deleteRule('[RULE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = proxy.getRule('[RULE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = proxy.listRules();
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,21 +0,0 @@
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();
let 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
;
let promise = proxy.updateRuleVerification('[RULE_ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
@@ -1,14 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var project = new Project(client);
Variable result = await project.CreateVariable(
key: "[KEY]",
value: "[VALUE]");
@@ -1,13 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var project = new Project(client);
await project.DeleteVariable(
variableId: "[VARIABLE_ID]");
@@ -1,13 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var project = new Project(client);
Variable result = await project.GetVariable(
variableId: "[VARIABLE_ID]");
@@ -1,12 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var project = new Project(client);
VariableList result = await project.ListVariables();
@@ -1,14 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var project = new Project(client);
Variable result = await project.UpdateVariable(
variableId: "[VARIABLE_ID]",
key: "[KEY]");
@@ -1,14 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var proxy = new Proxy(client);
ProxyRule result = await proxy.CreateRule(
domain: "",
resourceType: "api");
@@ -1,13 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var proxy = new Proxy(client);
await proxy.DeleteRule(
ruleId: "[RULE_ID]");
@@ -1,13 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var proxy = new Proxy(client);
ProxyRule result = await proxy.GetRule(
ruleId: "[RULE_ID]");
@@ -1,12 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var proxy = new Proxy(client);
ProxyRuleList result = await proxy.ListRules();
@@ -1,13 +0,0 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var proxy = new Proxy(client);
ProxyRule result = await proxy.UpdateRuleVerification(
ruleId: "[RULE_ID]");
@@ -1,14 +0,0 @@
mutation {
projectCreateVariable(
key: "[KEY]",
value: "[VALUE]"
) {
_id
_createdAt
_updatedAt
key
value
resourceType
resourceId
}
}
@@ -1,7 +0,0 @@
mutation {
projectDeleteVariable(
variableId: "[VARIABLE_ID]"
) {
status
}
}
@@ -1,13 +0,0 @@
query {
projectGetVariable(
variableId: "[VARIABLE_ID]"
) {
_id
_createdAt
_updatedAt
key
value
resourceType
resourceId
}
}
@@ -1,14 +0,0 @@
query {
projectListVariables {
total
variables {
_id
_createdAt
_updatedAt
key
value
resourceType
resourceId
}
}
}
@@ -1,14 +0,0 @@
mutation {
projectUpdateVariable(
variableId: "[VARIABLE_ID]",
key: "[KEY]"
) {
_id
_createdAt
_updatedAt
key
value
resourceType
resourceId
}
}
@@ -1,16 +0,0 @@
mutation {
proxyCreateRule(
domain: "",
resourceType: "api"
) {
_id
_createdAt
_updatedAt
domain
resourceType
resourceId
status
logs
renewAt
}
}
@@ -1,7 +0,0 @@
mutation {
proxyDeleteRule(
ruleId: "[RULE_ID]"
) {
status
}
}
@@ -1,15 +0,0 @@
query {
proxyGetRule(
ruleId: "[RULE_ID]"
) {
_id
_createdAt
_updatedAt
domain
resourceType
resourceId
status
logs
renewAt
}
}
@@ -1,16 +0,0 @@
query {
proxyListRules {
total
rules {
_id
_createdAt
_updatedAt
domain
resourceType
resourceId
status
logs
renewAt
}
}
}
@@ -1,15 +0,0 @@
mutation {
proxyUpdateRuleVerification(
ruleId: "[RULE_ID]"
) {
_id
_createdAt
_updatedAt
domain
resourceType
resourceId
status
logs
renewAt
}
}
@@ -1,23 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Project;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Project project = new Project(client);
project.createVariable(
"[KEY]",
"[VALUE]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,22 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Project;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Project project = new Project(client);
project.deleteVariable(
"[VARIABLE_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,22 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Project;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Project project = new Project(client);
project.getVariable(
"[VARIABLE_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,19 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Project;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Project project = new Project(client);
project.listVariables(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
}));
@@ -1,23 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Project;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Project project = new Project(client);
project.updateVariable(
"[VARIABLE_ID]",
"[KEY]",
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,23 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Proxy;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Proxy proxy = new Proxy(client);
proxy.createRule(
"",
"api",
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,22 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Proxy;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Proxy proxy = new Proxy(client);
proxy.deleteRule(
"[RULE_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,22 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Proxy;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Proxy proxy = new Proxy(client);
proxy.getRule(
"[RULE_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,21 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Proxy;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Proxy proxy = new Proxy(client);
proxy.listRules(
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,22 +0,0 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Proxy;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Proxy proxy = new Proxy(client);
proxy.updateRuleVerification(
"[RULE_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);
@@ -1,14 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Project
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val project = Project(client)
val response = project.createVariable(
key = "[KEY]",
value = "[VALUE]"
)
@@ -1,13 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Project
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val project = Project(client)
val response = project.deleteVariable(
variableId = "[VARIABLE_ID]"
)
@@ -1,13 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Project
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val project = Project(client)
val response = project.getVariable(
variableId = "[VARIABLE_ID]"
)
@@ -1,11 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Project
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val project = Project(client)
val response = project.listVariables()
@@ -1,14 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Project
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val project = Project(client)
val response = project.updateVariable(
variableId = "[VARIABLE_ID]",
key = "[KEY]",
)
@@ -1,14 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Proxy
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val proxy = Proxy(client)
val response = proxy.createRule(
domain = "",
resourceType = "api",
)
@@ -1,13 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Proxy
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val proxy = Proxy(client)
val response = proxy.deleteRule(
ruleId = "[RULE_ID]"
)
@@ -1,13 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Proxy
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val proxy = Proxy(client)
val response = proxy.getRule(
ruleId = "[RULE_ID]"
)
@@ -1,12 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Proxy
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val proxy = Proxy(client)
val response = proxy.listRules(
)
@@ -1,13 +0,0 @@
import io.appwrite.Client
import io.appwrite.services.Proxy
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val proxy = Proxy(client)
val response = proxy.updateRuleVerification(
ruleId = "[RULE_ID]"
)
@@ -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);
});
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Project;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$project = new Project($client);
$result = $project->createVariable('[KEY]', '[VALUE]');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Project;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$project = new Project($client);
$result = $project->deleteVariable('[VARIABLE_ID]');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Project;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$project = new Project($client);
$result = $project->getVariable('[VARIABLE_ID]');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Project;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$project = new Project($client);
$result = $project->listVariables();
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Project;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$project = new Project($client);
$result = $project->updateVariable('[VARIABLE_ID]', '[KEY]');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Proxy;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$proxy = new Proxy($client);
$result = $proxy->createRule('', 'api');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Proxy;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$proxy = new Proxy($client);
$result = $proxy->deleteRule('[RULE_ID]');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Proxy;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$proxy = new Proxy($client);
$result = $proxy->getRule('[RULE_ID]');
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Proxy;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$proxy = new Proxy($client);
$result = $proxy->listRules();
@@ -1,16 +0,0 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Proxy;
$client = new Client();
$client
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
$proxy = new Proxy($client);
$result = $proxy->updateRuleVerification('[RULE_ID]');
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.create_variable('[KEY]', '[VALUE]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.delete_variable('[VARIABLE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.get_variable('[VARIABLE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.list_variables()
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.update_variable('[VARIABLE_ID]', '[KEY]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.create_rule('', 'api')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.delete_rule('[RULE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.get_rule('[RULE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.list_rules()
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.update_rule_verification('[RULE_ID]')
@@ -1,11 +0,0 @@
POST /v1/project/variables HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"key": "[KEY]",
"value": "[VALUE]"
}
@@ -1,7 +0,0 @@
DELETE /v1/project/variables/{variableId} HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
@@ -1,7 +0,0 @@
GET /v1/project/variables/{variableId} HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
@@ -1,7 +0,0 @@
GET /v1/project/variables HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
@@ -1,11 +0,0 @@
PUT /v1/project/variables/{variableId} HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"key": "[KEY]",
"value": "[VALUE]"
}
@@ -1,12 +0,0 @@
POST /v1/proxy/rules HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"domain": ,
"resourceType": "api",
"resourceId": "[RESOURCE_ID]"
}
@@ -1,7 +0,0 @@
DELETE /v1/proxy/rules/{ruleId} HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
@@ -1,7 +0,0 @@
GET /v1/proxy/rules/{ruleId} HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
@@ -1,7 +0,0 @@
GET /v1/proxy/rules HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
@@ -1,7 +0,0 @@
PATCH /v1/proxy/rules/{ruleId}/verification HTTP/1.1
Host: HOSTNAME
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2

Some files were not shown because too many files have changed in this diff Show More