appwrite 2.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +134 -57
- data/lib/appwrite/exception.rb +5 -7
- data/lib/appwrite/file.rb +5 -13
- data/lib/appwrite/models/attribute_boolean.rb +52 -0
- data/lib/appwrite/models/attribute_email.rb +57 -0
- data/lib/appwrite/models/attribute_enum.rb +62 -0
- data/lib/appwrite/models/attribute_float.rb +62 -0
- data/lib/appwrite/models/attribute_integer.rb +62 -0
- data/lib/appwrite/models/attribute_ip.rb +57 -0
- data/lib/appwrite/models/attribute_list.rb +32 -0
- data/lib/appwrite/models/attribute_string.rb +57 -0
- data/lib/appwrite/models/attribute_url.rb +57 -0
- data/lib/appwrite/models/collection.rb +62 -0
- data/lib/appwrite/models/collection_list.rb +32 -0
- data/lib/appwrite/models/continent.rb +32 -0
- data/lib/appwrite/models/continent_list.rb +32 -0
- data/lib/appwrite/models/country.rb +32 -0
- data/lib/appwrite/models/country_list.rb +32 -0
- data/lib/appwrite/models/currency.rb +57 -0
- data/lib/appwrite/models/currency_list.rb +32 -0
- data/lib/appwrite/models/document.rb +50 -0
- data/lib/appwrite/models/document_list.rb +36 -0
- data/lib/appwrite/models/execution.rb +72 -0
- data/lib/appwrite/models/execution_list.rb +32 -0
- data/lib/appwrite/models/file.rb +62 -0
- data/lib/appwrite/models/file_list.rb +32 -0
- data/lib/appwrite/models/function.rb +92 -0
- data/lib/appwrite/models/function_list.rb +32 -0
- data/lib/appwrite/models/health_antivirus.rb +32 -0
- data/lib/appwrite/models/health_queue.rb +27 -0
- data/lib/appwrite/models/health_status.rb +32 -0
- data/lib/appwrite/models/health_time.rb +37 -0
- data/lib/appwrite/models/index.rb +47 -0
- data/lib/appwrite/models/index_list.rb +32 -0
- data/lib/appwrite/models/language.rb +37 -0
- data/lib/appwrite/models/language_list.rb +32 -0
- data/lib/appwrite/models/locale.rb +57 -0
- data/lib/appwrite/models/log.rb +127 -0
- data/lib/appwrite/models/log_list.rb +32 -0
- data/lib/appwrite/models/membership.rb +67 -0
- data/lib/appwrite/models/membership_list.rb +32 -0
- data/lib/appwrite/models/phone.rb +37 -0
- data/lib/appwrite/models/phone_list.rb +32 -0
- data/lib/appwrite/models/preferences.rb +30 -0
- data/lib/appwrite/models/runtime.rb +57 -0
- data/lib/appwrite/models/runtime_list.rb +32 -0
- data/lib/appwrite/models/session.rb +132 -0
- data/lib/appwrite/models/session_list.rb +32 -0
- data/lib/appwrite/models/tag.rb +47 -0
- data/lib/appwrite/models/tag_list.rb +32 -0
- data/lib/appwrite/models/team.rb +42 -0
- data/lib/appwrite/models/team_list.rb +32 -0
- data/lib/appwrite/models/token.rb +42 -0
- data/lib/appwrite/models/user.rb +62 -0
- data/lib/appwrite/models/user_list.rb +32 -0
- data/lib/appwrite/query.rb +42 -0
- data/lib/appwrite/service.rb +0 -5
- data/lib/appwrite/services/account.rb +380 -133
- data/lib/appwrite/services/avatars.rb +189 -125
- data/lib/appwrite/services/database.rb +876 -130
- data/lib/appwrite/services/functions.rb +366 -184
- data/lib/appwrite/services/health.rb +202 -58
- data/lib/appwrite/services/locale.rb +134 -32
- data/lib/appwrite/services/storage.rb +211 -118
- data/lib/appwrite/services/teams.rb +299 -118
- data/lib/appwrite/services/users.rb +372 -85
- data/lib/appwrite.rb +55 -0
- metadata +72 -103
- data/.travis.yml +0 -16
- data/CHANGELOG.md +0 -1
- data/Gemfile +0 -4
- data/LICENSE +0 -12
- data/README.md +0 -97
- data/appwrite.gemspec +0 -11
- data/docs/examples/account/create-recovery.md +0 -15
- data/docs/examples/account/create-verification.md +0 -15
- data/docs/examples/account/delete-session.md +0 -15
- data/docs/examples/account/delete-sessions.md +0 -15
- data/docs/examples/account/delete.md +0 -15
- data/docs/examples/account/get-logs.md +0 -15
- data/docs/examples/account/get-prefs.md +0 -15
- data/docs/examples/account/get-sessions.md +0 -15
- data/docs/examples/account/get.md +0 -15
- data/docs/examples/account/update-email.md +0 -15
- data/docs/examples/account/update-name.md +0 -15
- data/docs/examples/account/update-password.md +0 -15
- data/docs/examples/account/update-prefs.md +0 -15
- data/docs/examples/account/update-recovery.md +0 -15
- data/docs/examples/account/update-verification.md +0 -15
- data/docs/examples/avatars/get-browser.md +0 -15
- data/docs/examples/avatars/get-credit-card.md +0 -15
- data/docs/examples/avatars/get-favicon.md +0 -15
- data/docs/examples/avatars/get-flag.md +0 -15
- data/docs/examples/avatars/get-image.md +0 -15
- data/docs/examples/avatars/get-initials.md +0 -15
- data/docs/examples/avatars/get-q-r.md +0 -15
- data/docs/examples/database/create-collection.md +0 -15
- data/docs/examples/database/create-document.md +0 -15
- data/docs/examples/database/delete-collection.md +0 -15
- data/docs/examples/database/delete-document.md +0 -15
- data/docs/examples/database/get-collection.md +0 -15
- data/docs/examples/database/get-document.md +0 -15
- data/docs/examples/database/list-collections.md +0 -15
- data/docs/examples/database/list-documents.md +0 -15
- data/docs/examples/database/update-collection.md +0 -15
- data/docs/examples/database/update-document.md +0 -15
- data/docs/examples/functions/create-execution.md +0 -15
- data/docs/examples/functions/create-tag.md +0 -15
- data/docs/examples/functions/create.md +0 -15
- data/docs/examples/functions/delete-tag.md +0 -15
- data/docs/examples/functions/delete.md +0 -15
- data/docs/examples/functions/get-execution.md +0 -15
- data/docs/examples/functions/get-tag.md +0 -15
- data/docs/examples/functions/get.md +0 -15
- data/docs/examples/functions/list-executions.md +0 -15
- data/docs/examples/functions/list-tags.md +0 -15
- data/docs/examples/functions/list.md +0 -15
- data/docs/examples/functions/update-tag.md +0 -15
- data/docs/examples/functions/update.md +0 -15
- data/docs/examples/health/get-anti-virus.md +0 -15
- data/docs/examples/health/get-cache.md +0 -15
- data/docs/examples/health/get-d-b.md +0 -15
- data/docs/examples/health/get-queue-certificates.md +0 -15
- data/docs/examples/health/get-queue-functions.md +0 -15
- data/docs/examples/health/get-queue-logs.md +0 -15
- data/docs/examples/health/get-queue-tasks.md +0 -15
- data/docs/examples/health/get-queue-usage.md +0 -15
- data/docs/examples/health/get-queue-webhooks.md +0 -15
- data/docs/examples/health/get-storage-local.md +0 -15
- data/docs/examples/health/get-time.md +0 -15
- data/docs/examples/health/get.md +0 -15
- data/docs/examples/locale/get-continents.md +0 -15
- data/docs/examples/locale/get-countries-e-u.md +0 -15
- data/docs/examples/locale/get-countries-phones.md +0 -15
- data/docs/examples/locale/get-countries.md +0 -15
- data/docs/examples/locale/get-currencies.md +0 -15
- data/docs/examples/locale/get-languages.md +0 -15
- data/docs/examples/locale/get.md +0 -15
- data/docs/examples/storage/create-file.md +0 -15
- data/docs/examples/storage/delete-file.md +0 -15
- data/docs/examples/storage/get-file-download.md +0 -15
- data/docs/examples/storage/get-file-preview.md +0 -15
- data/docs/examples/storage/get-file-view.md +0 -15
- data/docs/examples/storage/get-file.md +0 -15
- data/docs/examples/storage/list-files.md +0 -15
- data/docs/examples/storage/update-file.md +0 -15
- data/docs/examples/teams/create-membership.md +0 -15
- data/docs/examples/teams/create.md +0 -15
- data/docs/examples/teams/delete-membership.md +0 -15
- data/docs/examples/teams/delete.md +0 -15
- data/docs/examples/teams/get-memberships.md +0 -15
- data/docs/examples/teams/get.md +0 -15
- data/docs/examples/teams/list.md +0 -15
- data/docs/examples/teams/update-membership-roles.md +0 -15
- data/docs/examples/teams/update-membership-status.md +0 -15
- data/docs/examples/teams/update.md +0 -15
- data/docs/examples/users/create.md +0 -15
- data/docs/examples/users/delete-session.md +0 -15
- data/docs/examples/users/delete-sessions.md +0 -15
- data/docs/examples/users/delete.md +0 -15
- data/docs/examples/users/get-logs.md +0 -15
- data/docs/examples/users/get-prefs.md +0 -15
- data/docs/examples/users/get-sessions.md +0 -15
- data/docs/examples/users/get.md +0 -15
- data/docs/examples/users/list.md +0 -15
- data/docs/examples/users/update-prefs.md +0 -15
- data/docs/examples/users/update-status.md +0 -15
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
avatars = Appwrite::Avatars.new(client);
|
12
|
-
|
13
|
-
response = avatars.get_image(url: 'https://example.com');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
avatars = Appwrite::Avatars.new(client);
|
12
|
-
|
13
|
-
response = avatars.get_initials();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
avatars = Appwrite::Avatars.new(client);
|
12
|
-
|
13
|
-
response = avatars.get_qr(text: '[TEXT]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.create_collection(name: '[NAME]', read: [], write: [], rules: []);
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.create_document(collection_id: '[COLLECTION_ID]', data: {});
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.delete_collection(collection_id: '[COLLECTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.get_collection(collection_id: '[COLLECTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.list_collections();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.list_documents(collection_id: '[COLLECTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
database = Appwrite::Database.new(client);
|
12
|
-
|
13
|
-
response = database.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {});
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.create_execution(function_id: '[FUNCTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: Appwrite::File.new());
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.create(name: '[NAME]', execute: [], env: 'dotnet-3.1');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.delete_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.delete(function_id: '[FUNCTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.get_execution(function_id: '[FUNCTION_ID]', execution_id: '[EXECUTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.get_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.get(function_id: '[FUNCTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.list_executions(function_id: '[FUNCTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.list_tags(function_id: '[FUNCTION_ID]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.list();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.update_tag(function_id: '[FUNCTION_ID]', tag: '[TAG]');
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
functions = Appwrite::Functions.new(client);
|
12
|
-
|
13
|
-
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: []);
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_anti_virus();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_cache();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_db();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_queue_certificates();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_queue_functions();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_queue_logs();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_queue_tasks();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_queue_usage();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_queue_webhooks();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_storage_local();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get_time();
|
14
|
-
|
15
|
-
puts response
|
data/docs/examples/health/get.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
health = Appwrite::Health.new(client);
|
12
|
-
|
13
|
-
response = health.get();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
locale = Appwrite::Locale.new(client);
|
12
|
-
|
13
|
-
response = locale.get_continents();
|
14
|
-
|
15
|
-
puts response
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'appwrite'
|
2
|
-
|
3
|
-
client = Appwrite::Client.new()
|
4
|
-
|
5
|
-
client
|
6
|
-
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
7
|
-
.set_project('5df5acd0d48c2') # Your project ID
|
8
|
-
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
9
|
-
;
|
10
|
-
|
11
|
-
locale = Appwrite::Locale.new(client);
|
12
|
-
|
13
|
-
response = locale.get_countries_eu();
|
14
|
-
|
15
|
-
puts response
|