-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for path parsing and updated doc examples
- Loading branch information
Showing
68 changed files
with
953 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Avatars.new(client); | ||
|
||
response = avatars.get_browser(code: 'aa'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Avatars.new(client); | ||
|
||
response = avatars.get_credit_card(code: 'amex'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Avatars.new(client); | ||
|
||
response = avatars.get_favicon(url: 'https://example.com'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Avatars.new(client); | ||
|
||
response = avatars.get_flag(code: 'af'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Avatars.new(client); | ||
|
||
response = avatars.get_image(url: 'https://example.com'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Avatars.new(client); | ||
|
||
response = avatars.get_q_r(text: '[TEXT]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.create_collection(name: '[NAME]', read: [], write: [], rules: []); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.create_document(collection_id: '[COLLECTION_ID]', data: {}, read: [], write: []); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.delete_collection(collection_id: '[COLLECTION_ID]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.get_collection_logs(collection_id: '[COLLECTION_ID]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.get_collection(collection_id: '[COLLECTION_ID]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.list_collections(); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.list_documents(collection_id: '[COLLECTION_ID]'); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', read: [], write: []); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key | ||
; | ||
|
||
database = Appwrite::Database.new(client); | ||
|
||
response = database.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}, read: [], write: []); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Health.new(client); | ||
|
||
response = health.get_anti_virus(); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Health.new(client); | ||
|
||
response = health.get_cache(); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Health.new(client); | ||
|
||
response = health.get_d_b(); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Health.new(client); | ||
|
||
response = health.get_queue_certificates(); | ||
|
||
puts response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'appwrite' | ||
|
||
client = Appwrite::Client.new() | ||
|
||
client | ||
.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 = Appwrite::Health.new(client); | ||
|
||
response = health.get_queue_functions(); | ||
|
||
puts response |
Oops, something went wrong.