Update generated docs

This commit is contained in:
Matej Bačo
2022-12-26 13:17:28 +01:00
parent 3826937a7b
commit 65fec6b954
2541 changed files with 38892 additions and 0 deletions
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.create_phone_verification()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.create_recovery(email: 'email@example.com', url: 'https://example.com')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.create_verification(url: 'https://example.com')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.delete_session(session_id: '[SESSION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.delete_sessions()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.get_prefs()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.get_session(session_id: '[SESSION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.get()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.list_logs()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.list_sessions()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_email(email: 'email@example.com', password: 'password')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_name(name: '[NAME]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_password(password: 'password')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_phone_verification(user_id: '[USER_ID]', secret: '[SECRET]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_phone(phone: '+12065550100', password: 'password')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_prefs(prefs: {})
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_recovery(user_id: '[USER_ID]', secret: '[SECRET]', password: 'password', password_again: 'password')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_session(session_id: '[SESSION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_status()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
account = Account.new(client)
response = account.update_verification(user_id: '[USER_ID]', secret: '[SECRET]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_browser(code: 'aa')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_credit_card(code: 'amex')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_favicon(url: 'https://example.com')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_flag(code: 'af')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_image(url: 'https://example.com')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_initials()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
avatars = Avatars.new(client)
response = avatars.get_qr(text: '[TEXT]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_boolean_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', name: '[NAME]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_datetime_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {})
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_email_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_enum_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_float_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_index(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: [])
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_integer_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_ip_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_string_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create_url_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.create(database_id: '[DATABASE_ID]', name: '[NAME]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.delete_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.delete_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.delete_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.delete_index(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.delete(database_id: '[DATABASE_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.get_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.get_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.get_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.get_index(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.get(database_id: '[DATABASE_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.list_attributes(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.list_collections(database_id: '[DATABASE_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.list_documents(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.list_indexes(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.list()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.update_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', name: '[NAME]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.update_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
databases = Databases.new(client)
response = databases.update(database_id: '[DATABASE_ID]', name: '[NAME]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.create_build(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]', build_id: '[BUILD_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: InputFile.from_path('dir/file.png'), activate: false)
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.create_execution(function_id: '[FUNCTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.create_variable(function_id: '[FUNCTION_ID]', key: '[KEY]', value: '[VALUE]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["any"], runtime: 'node-14.5')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.delete_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.delete_variable(function_id: '[FUNCTION_ID]', variable_id: '[VARIABLE_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.delete(function_id: '[FUNCTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.get_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.get_execution(function_id: '[FUNCTION_ID]', execution_id: '[EXECUTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.get_variable(function_id: '[FUNCTION_ID]', variable_id: '[VARIABLE_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.get(function_id: '[FUNCTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.list_deployments(function_id: '[FUNCTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.list_executions(function_id: '[FUNCTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.list_runtimes()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.list_variables(function_id: '[FUNCTION_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.list()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.update_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.update_variable(function_id: '[FUNCTION_ID]', variable_id: '[VARIABLE_ID]', key: '[KEY]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
functions = Functions.new(client)
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["any"])
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
graphql = Graphql.new(client)
response = graphql.a08ed7b8f61(query: '[QUERY]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
graphql = Graphql.new(client)
response = graphql.get(query: '[QUERY]')
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
graphql = Graphql.new(client)
response = graphql.mutation(query: {})
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
graphql = Graphql.new(client)
response = graphql.query(query: {})
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_antivirus()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_cache()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_db()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_queue_certificates()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_queue_functions()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_queue_logs()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_queue_webhooks()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_storage_local()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get_time()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
response = health.get()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.get()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.list_continents()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.list_countries_eu()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.list_countries_phones()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.list_countries()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.list_currencies()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
locale = Locale.new(client)
response = locale.list_languages()
puts response.inspect
@@ -0,0 +1,14 @@
require 'Appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
storage = Storage.new(client)
response = storage.create_bucket(bucket_id: '[BUCKET_ID]', name: '[NAME]')
puts response.inspect

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