From d6ec252de08bc8392194c94c8d9d92b46df8044c Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Fri, 10 Apr 2020 11:35:13 +0300 Subject: [PATCH] Updated SDK --- .../.dart_tool/package_config.json | 2 +- app/sdks/flutter-dart/.packages | 2 +- .../examples/account/create-o-auth2session.md | 22 ----------------- .../docs/examples/account/create-recovery.md | 21 ---------------- .../docs/examples/account/create-session.md | 21 ---------------- .../examples/account/create-verification.md | 20 ---------------- .../docs/examples/account/create.md | 21 ---------------- .../docs/examples/account/delete-session.md | 20 ---------------- .../docs/examples/account/delete-sessions.md | 18 -------------- .../docs/examples/account/delete.md | 18 -------------- .../docs/examples/account/get-logs.md | 18 -------------- .../docs/examples/account/get-prefs.md | 18 -------------- .../docs/examples/account/get-sessions.md | 18 -------------- .../flutter-dart/docs/examples/account/get.md | 18 -------------- .../docs/examples/account/update-email.md | 21 ---------------- .../docs/examples/account/update-name.md | 20 ---------------- .../docs/examples/account/update-password.md | 21 ---------------- .../docs/examples/account/update-prefs.md | 20 ---------------- .../docs/examples/account/update-recovery.md | 23 ------------------ .../examples/account/update-verification.md | 21 ---------------- .../docs/examples/avatars/get-browser.md | 20 ---------------- .../docs/examples/avatars/get-credit-card.md | 20 ---------------- .../docs/examples/avatars/get-favicon.md | 20 ---------------- .../docs/examples/avatars/get-flag.md | 20 ---------------- .../docs/examples/avatars/get-image.md | 20 ---------------- .../docs/examples/avatars/get-q-r.md | 20 ---------------- .../docs/examples/database/create-document.md | 23 ------------------ .../docs/examples/database/delete-document.md | 21 ---------------- .../docs/examples/database/get-document.md | 21 ---------------- .../docs/examples/database/list-documents.md | 20 ---------------- .../docs/examples/database/update-document.md | 24 ------------------- .../docs/examples/locale/get-continents.md | 18 -------------- .../docs/examples/locale/get-countries-e-u.md | 18 -------------- .../examples/locale/get-countries-phones.md | 18 -------------- .../docs/examples/locale/get-countries.md | 18 -------------- .../docs/examples/locale/get-currencies.md | 18 -------------- .../flutter-dart/docs/examples/locale/get.md | 18 -------------- .../docs/examples/storage/create-file.md | 23 ------------------ .../docs/examples/storage/delete-file.md | 20 ---------------- .../examples/storage/get-file-download.md | 20 ---------------- .../docs/examples/storage/get-file-preview.md | 20 ---------------- .../docs/examples/storage/get-file-view.md | 20 ---------------- .../docs/examples/storage/get-file.md | 20 ---------------- .../docs/examples/storage/list-files.md | 19 --------------- .../docs/examples/storage/update-file.md | 22 ----------------- .../docs/examples/teams/create-membership.md | 23 ------------------ .../docs/examples/teams/create.md | 20 ---------------- .../docs/examples/teams/delete-membership.md | 21 ---------------- .../docs/examples/teams/delete.md | 20 ---------------- .../docs/examples/teams/get-memberships.md | 20 ---------------- .../flutter-dart/docs/examples/teams/get.md | 20 ---------------- .../flutter-dart/docs/examples/teams/list.md | 19 --------------- .../teams/update-membership-status.md | 23 ------------------ .../docs/examples/teams/update.md | 21 ---------------- 54 files changed, 2 insertions(+), 1049 deletions(-) delete mode 100644 app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/create-recovery.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/create-session.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/create-verification.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/create.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/delete-session.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/delete-sessions.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/delete.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/get-logs.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/get-prefs.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/get-sessions.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/get.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/update-email.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/update-name.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/update-password.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/update-prefs.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/update-recovery.md delete mode 100644 app/sdks/flutter-dart/docs/examples/account/update-verification.md delete mode 100644 app/sdks/flutter-dart/docs/examples/avatars/get-browser.md delete mode 100644 app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md delete mode 100644 app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md delete mode 100644 app/sdks/flutter-dart/docs/examples/avatars/get-flag.md delete mode 100644 app/sdks/flutter-dart/docs/examples/avatars/get-image.md delete mode 100644 app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md delete mode 100644 app/sdks/flutter-dart/docs/examples/database/create-document.md delete mode 100644 app/sdks/flutter-dart/docs/examples/database/delete-document.md delete mode 100644 app/sdks/flutter-dart/docs/examples/database/get-document.md delete mode 100644 app/sdks/flutter-dart/docs/examples/database/list-documents.md delete mode 100644 app/sdks/flutter-dart/docs/examples/database/update-document.md delete mode 100644 app/sdks/flutter-dart/docs/examples/locale/get-continents.md delete mode 100644 app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md delete mode 100644 app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md delete mode 100644 app/sdks/flutter-dart/docs/examples/locale/get-countries.md delete mode 100644 app/sdks/flutter-dart/docs/examples/locale/get-currencies.md delete mode 100644 app/sdks/flutter-dart/docs/examples/locale/get.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/create-file.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/delete-file.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/get-file-download.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/get-file-view.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/get-file.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/list-files.md delete mode 100644 app/sdks/flutter-dart/docs/examples/storage/update-file.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/create-membership.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/create.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/delete-membership.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/delete.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/get-memberships.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/get.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/list.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md delete mode 100644 app/sdks/flutter-dart/docs/examples/teams/update.md diff --git a/app/sdks/flutter-dart/.dart_tool/package_config.json b/app/sdks/flutter-dart/.dart_tool/package_config.json index 86cf362835..dd31636666 100644 --- a/app/sdks/flutter-dart/.dart_tool/package_config.json +++ b/app/sdks/flutter-dart/.dart_tool/package_config.json @@ -242,7 +242,7 @@ "languageVersion": "2.6" } ], - "generated": "2020-04-10T08:30:47.526846Z", + "generated": "2020-04-10T08:34:20.591152Z", "generator": "pub", "generatorVersion": "2.7.2" } diff --git a/app/sdks/flutter-dart/.packages b/app/sdks/flutter-dart/.packages index af8b3640f7..0277c387b3 100644 --- a/app/sdks/flutter-dart/.packages +++ b/app/sdks/flutter-dart/.packages @@ -1,4 +1,4 @@ -# Generated by pub on 2020-04-10 11:30:47.496978. +# Generated by pub on 2020-04-10 11:34:20.573255. archive:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11/lib/ args:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/args-1.5.2/lib/ async:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/async-2.4.0/lib/ diff --git a/app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md b/app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md deleted file mode 100644 index 83da4ddc07..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.createOAuth2Session( - provider: 'bitbucket', - success: 'https://example.com', - failure: 'https://example.com', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create-recovery.md b/app/sdks/flutter-dart/docs/examples/account/create-recovery.md deleted file mode 100644 index f381743e10..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/create-recovery.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.createRecovery( - email: 'email@example.com', - url: 'https://example.com', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create-session.md b/app/sdks/flutter-dart/docs/examples/account/create-session.md deleted file mode 100644 index 65584ae62a..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/create-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.createSession( - email: 'email@example.com', - password: 'password', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create-verification.md b/app/sdks/flutter-dart/docs/examples/account/create-verification.md deleted file mode 100644 index 735c53f4dd..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/create-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.createVerification( - url: 'https://example.com', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create.md b/app/sdks/flutter-dart/docs/examples/account/create.md deleted file mode 100644 index 596c8e8fcf..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.create( - email: 'email@example.com', - password: 'password', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/delete-session.md b/app/sdks/flutter-dart/docs/examples/account/delete-session.md deleted file mode 100644 index a1c4fe58c0..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/delete-session.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.deleteSession( - sessionId: '[SESSION_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/delete-sessions.md b/app/sdks/flutter-dart/docs/examples/account/delete-sessions.md deleted file mode 100644 index e0e0f9d6ea..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/delete-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.deleteSessions(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/delete.md b/app/sdks/flutter-dart/docs/examples/account/delete.md deleted file mode 100644 index 6566687b96..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.delete(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get-logs.md b/app/sdks/flutter-dart/docs/examples/account/get-logs.md deleted file mode 100644 index 00d0d95eee..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/get-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.getLogs(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get-prefs.md b/app/sdks/flutter-dart/docs/examples/account/get-prefs.md deleted file mode 100644 index ac9af996e8..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/get-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.getPrefs(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get-sessions.md b/app/sdks/flutter-dart/docs/examples/account/get-sessions.md deleted file mode 100644 index 136b349bbc..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/get-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.getSessions(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get.md b/app/sdks/flutter-dart/docs/examples/account/get.md deleted file mode 100644 index 7a3fab6ae3..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.get(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-email.md b/app/sdks/flutter-dart/docs/examples/account/update-email.md deleted file mode 100644 index 0e3783719b..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/update-email.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.updateEmail( - email: 'email@example.com', - password: 'password', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-name.md b/app/sdks/flutter-dart/docs/examples/account/update-name.md deleted file mode 100644 index f36e747d80..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/update-name.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.updateName( - name: '[NAME]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-password.md b/app/sdks/flutter-dart/docs/examples/account/update-password.md deleted file mode 100644 index dbc873634f..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.updatePassword( - password: 'password', - oldPassword: 'password', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-prefs.md b/app/sdks/flutter-dart/docs/examples/account/update-prefs.md deleted file mode 100644 index 6a687b63f4..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/update-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.updatePrefs( - prefs: {}, -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-recovery.md b/app/sdks/flutter-dart/docs/examples/account/update-recovery.md deleted file mode 100644 index d1e420e549..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/update-recovery.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.updateRecovery( - userId: '[USER_ID]', - secret: '[SECRET]', - passwordA: 'password', - passwordB: 'password', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-verification.md b/app/sdks/flutter-dart/docs/examples/account/update-verification.md deleted file mode 100644 index 7b080556b2..0000000000 --- a/app/sdks/flutter-dart/docs/examples/account/update-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Account account = Account(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = account.updateVerification( - userId: '[USER_ID]', - secret: '[SECRET]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-browser.md b/app/sdks/flutter-dart/docs/examples/avatars/get-browser.md deleted file mode 100644 index 4e057dd753..0000000000 --- a/app/sdks/flutter-dart/docs/examples/avatars/get-browser.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Avatars avatars = Avatars(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = avatars.getBrowser( - code: 'aa', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md b/app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md deleted file mode 100644 index caa57c877b..0000000000 --- a/app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Avatars avatars = Avatars(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = avatars.getCreditCard( - code: 'amex', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md b/app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md deleted file mode 100644 index 488bf3b351..0000000000 --- a/app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Avatars avatars = Avatars(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = avatars.getFavicon( - url: 'https://example.com', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-flag.md b/app/sdks/flutter-dart/docs/examples/avatars/get-flag.md deleted file mode 100644 index f401bae569..0000000000 --- a/app/sdks/flutter-dart/docs/examples/avatars/get-flag.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Avatars avatars = Avatars(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = avatars.getFlag( - code: 'af', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-image.md b/app/sdks/flutter-dart/docs/examples/avatars/get-image.md deleted file mode 100644 index d9bee4b20f..0000000000 --- a/app/sdks/flutter-dart/docs/examples/avatars/get-image.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Avatars avatars = Avatars(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = avatars.getImage( - url: 'https://example.com', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md b/app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md deleted file mode 100644 index 9be7533e0b..0000000000 --- a/app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Avatars avatars = Avatars(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = avatars.getQR( - text: '[TEXT]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/create-document.md b/app/sdks/flutter-dart/docs/examples/database/create-document.md deleted file mode 100644 index 9eea7b677c..0000000000 --- a/app/sdks/flutter-dart/docs/examples/database/create-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Database database = Database(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = database.createDocument( - collectionId: '[COLLECTION_ID]', - data: {}, - read: [], - write: [], -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/delete-document.md b/app/sdks/flutter-dart/docs/examples/database/delete-document.md deleted file mode 100644 index 5e41ff0a41..0000000000 --- a/app/sdks/flutter-dart/docs/examples/database/delete-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Database database = Database(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = database.deleteDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/get-document.md b/app/sdks/flutter-dart/docs/examples/database/get-document.md deleted file mode 100644 index e410508fb1..0000000000 --- a/app/sdks/flutter-dart/docs/examples/database/get-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Database database = Database(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = database.getDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/list-documents.md b/app/sdks/flutter-dart/docs/examples/database/list-documents.md deleted file mode 100644 index b4270d909b..0000000000 --- a/app/sdks/flutter-dart/docs/examples/database/list-documents.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Database database = Database(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = database.listDocuments( - collectionId: '[COLLECTION_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/update-document.md b/app/sdks/flutter-dart/docs/examples/database/update-document.md deleted file mode 100644 index e9c584e066..0000000000 --- a/app/sdks/flutter-dart/docs/examples/database/update-document.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Database database = Database(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = database.updateDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - read: [], - write: [], -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-continents.md b/app/sdks/flutter-dart/docs/examples/locale/get-continents.md deleted file mode 100644 index 743635f053..0000000000 --- a/app/sdks/flutter-dart/docs/examples/locale/get-continents.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Locale locale = Locale(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = locale.getContinents(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md b/app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md deleted file mode 100644 index c46b95ec07..0000000000 --- a/app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Locale locale = Locale(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = locale.getCountriesEU(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md b/app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md deleted file mode 100644 index a406f184f9..0000000000 --- a/app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Locale locale = Locale(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = locale.getCountriesPhones(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-countries.md b/app/sdks/flutter-dart/docs/examples/locale/get-countries.md deleted file mode 100644 index c83c02b60c..0000000000 --- a/app/sdks/flutter-dart/docs/examples/locale/get-countries.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Locale locale = Locale(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = locale.getCountries(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-currencies.md b/app/sdks/flutter-dart/docs/examples/locale/get-currencies.md deleted file mode 100644 index b34f4c7162..0000000000 --- a/app/sdks/flutter-dart/docs/examples/locale/get-currencies.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Locale locale = Locale(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = locale.getCurrencies(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get.md b/app/sdks/flutter-dart/docs/examples/locale/get.md deleted file mode 100644 index fed81b836e..0000000000 --- a/app/sdks/flutter-dart/docs/examples/locale/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Locale locale = Locale(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = locale.get(); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/create-file.md b/app/sdks/flutter-dart/docs/examples/storage/create-file.md deleted file mode 100644 index 5fbdff2387..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/create-file.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; -//const fs = require('fs'); - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.createFile( - file: null, - read: [], - write: [], -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/delete-file.md b/app/sdks/flutter-dart/docs/examples/storage/delete-file.md deleted file mode 100644 index 9a2ed98b96..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/delete-file.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.deleteFile( - fileId: '[FILE_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file-download.md b/app/sdks/flutter-dart/docs/examples/storage/get-file-download.md deleted file mode 100644 index 77b78a757b..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/get-file-download.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.getFileDownload( - fileId: '[FILE_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md b/app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md deleted file mode 100644 index 85e24d7d9a..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.getFilePreview( - fileId: '[FILE_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file-view.md b/app/sdks/flutter-dart/docs/examples/storage/get-file-view.md deleted file mode 100644 index 985b73839d..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/get-file-view.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.getFileView( - fileId: '[FILE_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file.md b/app/sdks/flutter-dart/docs/examples/storage/get-file.md deleted file mode 100644 index bdeaf55130..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/get-file.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.getFile( - fileId: '[FILE_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/list-files.md b/app/sdks/flutter-dart/docs/examples/storage/list-files.md deleted file mode 100644 index 9ef25d8a01..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/list-files.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.listFiles( -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/update-file.md b/app/sdks/flutter-dart/docs/examples/storage/update-file.md deleted file mode 100644 index 44955c224f..0000000000 --- a/app/sdks/flutter-dart/docs/examples/storage/update-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Storage storage = Storage(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = storage.updateFile( - fileId: '[FILE_ID]', - read: [], - write: [], -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/create-membership.md b/app/sdks/flutter-dart/docs/examples/teams/create-membership.md deleted file mode 100644 index b06200f66d..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/create-membership.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.createMembership( - teamId: '[TEAM_ID]', - email: 'email@example.com', - roles: [], - url: 'https://example.com', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/create.md b/app/sdks/flutter-dart/docs/examples/teams/create.md deleted file mode 100644 index 71bb6219a2..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/create.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.create( - name: '[NAME]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/delete-membership.md b/app/sdks/flutter-dart/docs/examples/teams/delete-membership.md deleted file mode 100644 index 4baddf5f9d..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/delete-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.deleteMembership( - teamId: '[TEAM_ID]', - inviteId: '[INVITE_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/delete.md b/app/sdks/flutter-dart/docs/examples/teams/delete.md deleted file mode 100644 index c88521f2a2..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.delete( - teamId: '[TEAM_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/get-memberships.md b/app/sdks/flutter-dart/docs/examples/teams/get-memberships.md deleted file mode 100644 index 27e0971de7..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/get-memberships.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.getMemberships( - teamId: '[TEAM_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/get.md b/app/sdks/flutter-dart/docs/examples/teams/get.md deleted file mode 100644 index ef9c01002c..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/get.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.get( - teamId: '[TEAM_ID]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/list.md b/app/sdks/flutter-dart/docs/examples/teams/list.md deleted file mode 100644 index a9e4313b83..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/list.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.list( -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md b/app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md deleted file mode 100644 index a33ecd4c18..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.updateMembershipStatus( - teamId: '[TEAM_ID]', - inviteId: '[INVITE_ID]', - userId: '[USER_ID]', - secret: '[SECRET]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/update.md b/app/sdks/flutter-dart/docs/examples/teams/update.md deleted file mode 100644 index b1cc7e2391..0000000000 --- a/app/sdks/flutter-dart/docs/examples/teams/update.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -// Init SDK -Client client = Client(); -Teams teams = Teams(client); - -client - .setProject('5df5acd0d48c2') // Your project ID -; - -Future result = teams.update( - teamId: '[TEAM_ID]', - name: '[NAME]', -); - -result - .then((response) { - print(response); - }).catchError((error) { - print(error); - }); \ No newline at end of file