Skip to content

Commit

Permalink
Fix for array type params
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Jul 26, 2020
1 parent f365c84 commit 12a8f1f
Show file tree
Hide file tree
Showing 66 changed files with 97 additions and 33 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Appwrite Deno SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-deno.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.6.1-blue.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.6.2-blue.svg?v=1)

**This SDK is compatible with Appwrite server version 0.6.1. For older versions, please check previous releases.**
**This SDK is compatible with Appwrite server version 0.6.2. For older versions, please check previous releases.**

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 Deno SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
Expand Down
1 change: 1 addition & 0 deletions docs/examples/avatars/get-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = avatars.getBrowser('aa');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/avatars/get-credit-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = avatars.getCreditCard('amex');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/avatars/get-favicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = avatars.getFavicon('https://example.com');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/avatars/get-flag.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = avatars.getFlag('af');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/avatars/get-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = avatars.getImage('https://example.com');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/avatars/get-q-r.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = avatars.getQR('[TEXT]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/create-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.createCollection('[NAME]', [], [], []);

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/create-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.createDocument('[COLLECTION_ID]', {}, [], []);

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/delete-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.deleteCollection('[COLLECTION_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/delete-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/get-collection-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.getCollectionLogs('[COLLECTION_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/get-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.getCollection('[COLLECTION_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/get-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/list-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.listCollections();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/list-documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.listDocuments('[COLLECTION_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/update-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]', [], []);

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/database/update-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}, [], []);

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-anti-virus.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getAntiVirus();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getCache();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-d-b.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getDB();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-queue-certificates.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getQueueCertificates();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-queue-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getQueueFunctions();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-queue-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getQueueLogs();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-queue-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getQueueTasks();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-queue-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getQueueUsage();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-queue-webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getQueueWebhooks();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-storage-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getStorageLocal();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.getTime();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = health.get();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/locale/get-continents.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = locale.getContinents();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/locale/get-countries-e-u.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = locale.getCountriesEU();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/locale/get-countries-phones.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = locale.getCountriesPhones();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/locale/get-countries.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = locale.getCountries();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/locale/get-currencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = locale.getCurrencies();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/locale/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = locale.get();

promise.then(function (response) {
Expand Down
3 changes: 2 additions & 1 deletion docs/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;

let promise = storage.createFile(fs.createReadStream(__dirname + '/file.png')), [], []);

let promise = storage.createFile(new File([fileBlob], 'file.png'), [], []);

promise.then(function (response) {
console.log(response);
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/delete-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.deleteFile('[FILE_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/get-file-download.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.getFileDownload('[FILE_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/get-file-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.getFilePreview('[FILE_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/get-file-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.getFileView('[FILE_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/get-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.getFile('[FILE_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/list-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.listFiles();

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/storage/update-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = storage.updateFile('[FILE_ID]', [], []);

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/teams/create-membership.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/teams/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = teams.create('[NAME]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/teams/delete-membership.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = teams.deleteMembership('[TEAM_ID]', '[INVITE_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/teams/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = teams.delete('[TEAM_ID]');

promise.then(function (response) {
Expand Down
1 change: 1 addition & 0 deletions docs/examples/teams/get-memberships.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;


let promise = teams.getMemberships('[TEAM_ID]');

promise.then(function (response) {
Expand Down
Loading

0 comments on commit 12a8f1f

Please sign in to comment.