1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

Updated Ruby SDK

This commit is contained in:
Eldad Fux 2020-05-30 14:52:36 +03:00
parent 093bcad4f2
commit 11c2d6ec82
69 changed files with 161 additions and 161 deletions

View file

@ -184,7 +184,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '1.0.10',
'version' => '1.0.11',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'enabled' => true,
'beta' => true,

View file

@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'appwrite'
s.version = '1.0.10'
s.version = '1.0.11'
s.summary = "Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)"

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
avatars = Appwrite::Avatars.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
avatars = Appwrite::Avatars.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
avatars = Appwrite::Avatars.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
avatars = Appwrite::Avatars.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
avatars = Appwrite::Avatars.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
avatars = Appwrite::Avatars.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
database = Appwrite::Database.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
health = Appwrite::Health.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
locale = Appwrite::Locale.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
locale = Appwrite::Locale.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
locale = Appwrite::Locale.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
locale = Appwrite::Locale.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
locale = Appwrite::Locale.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
locale = Appwrite::Locale.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
storage = Appwrite::Storage.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
teams = Appwrite::Teams.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -4,8 +4,8 @@ client = Appwrite::Client.new()
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.setproject('5df5acd0d48c2') # Your project ID
.setkey('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
;
users = Appwrite::Users.new(client);

View file

@ -20,7 +20,7 @@ module Appwrite
@headers = {
'content-type' => '',
'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
'x-sdk-version' => 'appwrite:ruby:1.0.10'
'x-sdk-version' => 'appwrite:ruby:1.0.11'
}
@endpoint = 'https://appwrite.io/v1';
end

View file

@ -33,7 +33,7 @@ module Appwrite
def get_collection(collection_id:)
path = '/database/collections/{collectionId}'
.gsub('{collection_id}', collection_id)
.gsub('{collectionId}', collection_id)
params = {
}
@ -45,7 +45,7 @@ module Appwrite
def update_collection(collection_id:, name:, read:, write:, rules: [])
path = '/database/collections/{collectionId}'
.gsub('{collection_id}', collection_id)
.gsub('{collectionId}', collection_id)
params = {
'name': name,
@ -61,7 +61,7 @@ module Appwrite
def delete_collection(collection_id:)
path = '/database/collections/{collectionId}'
.gsub('{collection_id}', collection_id)
.gsub('{collectionId}', collection_id)
params = {
}
@ -73,7 +73,7 @@ module Appwrite
def list_documents(collection_id:, filters: [], offset: 0, limit: 50, order_field: '$id', order_type: 'ASC', order_cast: 'string', search: '', first: 0, last: 0)
path = '/database/collections/{collectionId}/documents'
.gsub('{collection_id}', collection_id)
.gsub('{collectionId}', collection_id)
params = {
'filters': filters,
@ -94,7 +94,7 @@ module Appwrite
def create_document(collection_id:, data:, read:, write:, parent_document: '', parent_property: '', parent_property_type: 'assign')
path = '/database/collections/{collectionId}/documents'
.gsub('{collection_id}', collection_id)
.gsub('{collectionId}', collection_id)
params = {
'data': data,
@ -112,8 +112,8 @@ module Appwrite
def get_document(collection_id:, document_id:)
path = '/database/collections/{collectionId}/documents/{documentId}'
.gsub('{collection_id}', collection_id)
.gsub('{document_id}', document_id)
.gsub('{collectionId}', collection_id)
.gsub('{documentId}', document_id)
params = {
}
@ -125,8 +125,8 @@ module Appwrite
def update_document(collection_id:, document_id:, data:, read:, write:)
path = '/database/collections/{collectionId}/documents/{documentId}'
.gsub('{collection_id}', collection_id)
.gsub('{document_id}', document_id)
.gsub('{collectionId}', collection_id)
.gsub('{documentId}', document_id)
params = {
'data': data,
@ -141,8 +141,8 @@ module Appwrite
def delete_document(collection_id:, document_id:)
path = '/database/collections/{collectionId}/documents/{documentId}'
.gsub('{collection_id}', collection_id)
.gsub('{document_id}', document_id)
.gsub('{collectionId}', collection_id)
.gsub('{documentId}', document_id)
params = {
}
@ -154,7 +154,7 @@ module Appwrite
def get_collection_logs(collection_id:)
path = '/database/collections/{collectionId}/logs'
.gsub('{collection_id}', collection_id)
.gsub('{collectionId}', collection_id)
params = {
}

View file

@ -32,7 +32,7 @@ module Appwrite
def get_file(file_id:)
path = '/storage/files/{fileId}'
.gsub('{file_id}', file_id)
.gsub('{fileId}', file_id)
params = {
}
@ -44,7 +44,7 @@ module Appwrite
def update_file(file_id:, read:, write:)
path = '/storage/files/{fileId}'
.gsub('{file_id}', file_id)
.gsub('{fileId}', file_id)
params = {
'read': read,
@ -58,7 +58,7 @@ module Appwrite
def delete_file(file_id:)
path = '/storage/files/{fileId}'
.gsub('{file_id}', file_id)
.gsub('{fileId}', file_id)
params = {
}
@ -70,7 +70,7 @@ module Appwrite
def get_file_download(file_id:)
path = '/storage/files/{fileId}/download'
.gsub('{file_id}', file_id)
.gsub('{fileId}', file_id)
params = {
}
@ -82,7 +82,7 @@ module Appwrite
def get_file_preview(file_id:, width: 0, height: 0, quality: 100, background: '', output: '')
path = '/storage/files/{fileId}/preview'
.gsub('{file_id}', file_id)
.gsub('{fileId}', file_id)
params = {
'width': width,
@ -99,7 +99,7 @@ module Appwrite
def get_file_view(file_id:, as: '')
path = '/storage/files/{fileId}/view'
.gsub('{file_id}', file_id)
.gsub('{fileId}', file_id)
params = {
'as': as

View file

@ -31,7 +31,7 @@ module Appwrite
def get(team_id:)
path = '/teams/{teamId}'
.gsub('{team_id}', team_id)
.gsub('{teamId}', team_id)
params = {
}
@ -43,7 +43,7 @@ module Appwrite
def update(team_id:, name:)
path = '/teams/{teamId}'
.gsub('{team_id}', team_id)
.gsub('{teamId}', team_id)
params = {
'name': name
@ -56,7 +56,7 @@ module Appwrite
def delete(team_id:)
path = '/teams/{teamId}'
.gsub('{team_id}', team_id)
.gsub('{teamId}', team_id)
params = {
}
@ -68,7 +68,7 @@ module Appwrite
def get_memberships(team_id:)
path = '/teams/{teamId}/memberships'
.gsub('{team_id}', team_id)
.gsub('{teamId}', team_id)
params = {
}
@ -80,7 +80,7 @@ module Appwrite
def create_membership(team_id:, email:, roles:, url:, name: '')
path = '/teams/{teamId}/memberships'
.gsub('{team_id}', team_id)
.gsub('{teamId}', team_id)
params = {
'email': email,
@ -96,8 +96,8 @@ module Appwrite
def delete_membership(team_id:, invite_id:)
path = '/teams/{teamId}/memberships/{inviteId}'
.gsub('{team_id}', team_id)
.gsub('{invite_id}', invite_id)
.gsub('{teamId}', team_id)
.gsub('{inviteId}', invite_id)
params = {
}

View file

@ -32,7 +32,7 @@ module Appwrite
def get(user_id:)
path = '/users/{userId}'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
}
@ -44,7 +44,7 @@ module Appwrite
def get_logs(user_id:)
path = '/users/{userId}/logs'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
}
@ -56,7 +56,7 @@ module Appwrite
def get_prefs(user_id:)
path = '/users/{userId}/prefs'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
}
@ -68,7 +68,7 @@ module Appwrite
def update_prefs(user_id:, prefs:)
path = '/users/{userId}/prefs'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
'prefs': prefs
@ -81,7 +81,7 @@ module Appwrite
def get_sessions(user_id:)
path = '/users/{userId}/sessions'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
}
@ -93,7 +93,7 @@ module Appwrite
def delete_sessions(user_id:)
path = '/users/{userId}/sessions'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
}
@ -105,8 +105,8 @@ module Appwrite
def delete_session(user_id:, session_id:)
path = '/users/{userId}/sessions/{sessionId}'
.gsub('{user_id}', user_id)
.gsub('{session_id}', session_id)
.gsub('{userId}', user_id)
.gsub('{sessionId}', session_id)
params = {
}
@ -118,7 +118,7 @@ module Appwrite
def update_status(user_id:, status:)
path = '/users/{userId}/status'
.gsub('{user_id}', user_id)
.gsub('{userId}', user_id)
params = {
'status': status

4
composer.lock generated
View file

@ -1741,7 +1741,7 @@
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator",
"reference": "ca18c48a3252e1e2e7c7d823871cc4f3453b6ee0"
"reference": "a1672098ecc6a08cc400314e373b0d1cd5885f79"
},
"require": {
"ext-curl": "*",
@ -1771,7 +1771,7 @@
}
],
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"time": "2020-05-29T18:54:37+00:00"
"time": "2020-05-30T11:38:32+00:00"
},
{
"name": "doctrine/instantiator",