mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: hide services from server/client sdks
This commit is contained in:
1 parent
17248b38de
commit
e507fb6715
130 files changed
+18
-1921
No files matched your search
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = project.create_variable(key: '[KEY]', value: '[VALUE]')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = project.delete_variable(variable_id: '[VARIABLE_ID]')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = project.get_variable(variable_id: '[VARIABLE_ID]')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = project.list_variables()
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = project.update_variable(variable_id: '[VARIABLE_ID]', key: '[KEY]')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = proxy.create_rule(domain: '', resource_type: 'api')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = proxy.delete_rule(rule_id: '[RULE_ID]')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = proxy.get_rule(rule_id: '[RULE_ID]')
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = proxy.list_rules()
|
||||
|
||||
puts response.inspect
|
||||
@@ -1,14 +0,0 @@
|
||||
require 'Appwrite'
|
||||
|
||||
include Appwrite
|
||||
|
||||
client = Client.new
|
||||
.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.new(client)
|
||||
|
||||
response = proxy.update_rule_verification(rule_id: '[RULE_ID]')
|
||||
|
||||
puts response.inspect
|
||||
Reference in new issue
Block a user