mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: hide services from server/client sdks
This commit is contained in:
@@ -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]')
|
||||
Reference in New Issue
Block a user