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,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]');