diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-o-auth2session.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-o-auth2session.md deleted file mode 100644 index 0e26dd27af..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.createOAuth2Session( - provider: 'amazon', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-recovery.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-recovery.md deleted file mode 100644 index 50db45b15d..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-recovery.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .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.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-session.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-session.md deleted file mode 100644 index ef824b4eca..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.createSession( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-verification.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-verification.md deleted file mode 100644 index 6b9b1ace40..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create-verification.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.createVerification( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create.md deleted file mode 100644 index 384258ae68..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/create.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.create( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete-session.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete-session.md deleted file mode 100644 index 80a3f505d0..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.deleteSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete-sessions.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete-sessions.md deleted file mode 100644 index 5e947fabc2..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.deleteSessions( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete.md deleted file mode 100644 index 2853a1f437..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.delete( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-logs.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-logs.md deleted file mode 100644 index 8f52f8220b..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.getLogs( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-prefs.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-prefs.md deleted file mode 100644 index 01d57a5499..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.getPrefs( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-sessions.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-sessions.md deleted file mode 100644 index e921bda59b..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.getSessions( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get.md deleted file mode 100644 index 35241b5607..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/get.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.get( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-email.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-email.md deleted file mode 100644 index 4a1a002db4..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-email.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.updateEmail( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-name.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-name.md deleted file mode 100644 index fa432bb34a..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-name.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.updateName( - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-password.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-password.md deleted file mode 100644 index 9bd8ad9b77..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-password.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.updatePassword( - password: 'password', - oldPassword: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-prefs.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-prefs.md deleted file mode 100644 index 443252f89a..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-prefs.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.updatePrefs( - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-recovery.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-recovery.md deleted file mode 100644 index 5140235d49..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-recovery.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.updateRecovery( - userId: '[USER_ID]', - secret: '[SECRET]', - password: 'password', - passwordAgain: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-verification.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-verification.md deleted file mode 100644 index b795cde92d..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/account/update-verification.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = account.updateVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-browser.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-browser.md deleted file mode 100644 index 464767c4c0..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-browser.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getBrowser( - code: 'aa', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-credit-card.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-credit-card.md deleted file mode 100644 index 482c642402..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getCreditCard( - code: 'amex', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-favicon.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-favicon.md deleted file mode 100644 index 60397b0af2..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-favicon.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getFavicon( - url: 'https://example.com', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-flag.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-flag.md deleted file mode 100644 index a9f7a711d9..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-flag.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getFlag( - code: 'af', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-image.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-image.md deleted file mode 100644 index 7cead1cb2f..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-image.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getImage( - url: 'https://example.com', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-initials.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-initials.md deleted file mode 100644 index b2e70788d6..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-initials.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getInitials( - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-q-r.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-q-r.md deleted file mode 100644 index a5bcfd2c05..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/avatars/get-q-r.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = avatars.getQR( - text: '[TEXT]', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/create-document.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/create-document.md deleted file mode 100644 index b7d540bc2d..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/create-document.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = database.createDocument( - collectionId: '[COLLECTION_ID]', - data: {}, - read: [], - write: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/delete-document.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/delete-document.md deleted file mode 100644 index 40c1cbdfe2..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/delete-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = database.deleteDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/get-document.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/get-document.md deleted file mode 100644 index 0c98142315..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/get-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = database.getDocument( - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/list-documents.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/list-documents.md deleted file mode 100644 index 0685e7f1aa..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/list-documents.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = database.listDocuments( - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/update-document.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/update-document.md deleted file mode 100644 index 2f37cd767a..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/database/update-document.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Database database = Database(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .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.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-continents.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-continents.md deleted file mode 100644 index 2a6a6413ba..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-continents.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.getContinents( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries-e-u.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries-e-u.md deleted file mode 100644 index 1934fc6709..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries-e-u.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.getCountriesEU( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries-phones.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries-phones.md deleted file mode 100644 index f6b1f58749..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries-phones.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.getCountriesPhones( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries.md deleted file mode 100644 index 104584968f..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-countries.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.getCountries( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-currencies.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-currencies.md deleted file mode 100644 index 8dc01fc68e..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-currencies.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.getCurrencies( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-languages.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-languages.md deleted file mode 100644 index a4124d3cbd..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get-languages.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.getLanguages( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get.md deleted file mode 100644 index 189fceb7d1..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/locale/get.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = locale.get( ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/create-file.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/create-file.md deleted file mode 100644 index 9f61be12f4..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/create-file.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'dart:io'; -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = storage.createFile( - file: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), - read: [], - write: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/delete-file.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/delete-file.md deleted file mode 100644 index 271ed7b2dd..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/delete-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = storage.deleteFile( - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-download.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-download.md deleted file mode 100644 index be3385a61b..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-download.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = storage.getFileDownload( - fileId: '[FILE_ID]', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-preview.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-preview.md deleted file mode 100644 index 8bd1a47457..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-preview.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = storage.getFilePreview( - fileId: '[FILE_ID]', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-view.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-view.md deleted file mode 100644 index 5803fd409f..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file-view.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - String result = storage.getFileView( - fileId: '[FILE_ID]', - ); - - print(result); // Resource URL string -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file.md deleted file mode 100644 index feca667fa9..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/get-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = storage.getFile( - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/list-files.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/list-files.md deleted file mode 100644 index 1963ec694d..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/list-files.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = storage.listFiles( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/update-file.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/update-file.md deleted file mode 100644 index a5ecbfe987..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/storage/update-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = storage.updateFile( - fileId: '[FILE_ID]', - read: [], - write: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/create-membership.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/create-membership.md deleted file mode 100644 index e5e82de7b4..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/create-membership.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .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.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/create.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/create.md deleted file mode 100644 index d11958ae6d..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/create.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.create( - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/delete-membership.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/delete-membership.md deleted file mode 100644 index 3f57b840fe..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/delete-membership.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.deleteMembership( - teamId: '[TEAM_ID]', - inviteId: '[INVITE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/delete.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/delete.md deleted file mode 100644 index 9fb488afec..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/delete.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.delete( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/get-memberships.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/get-memberships.md deleted file mode 100644 index 4edadfa2b4..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/get-memberships.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.getMemberships( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/get.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/get.md deleted file mode 100644 index 083565f7a6..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/get.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.get( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/list.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/list.md deleted file mode 100644 index 665020e928..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/update-membership-status.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/update-membership-status.md deleted file mode 100644 index 616f64e148..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/update-membership-status.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .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.response); - }); -} \ No newline at end of file diff --git a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/update.md b/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/update.md deleted file mode 100644 index 915fb57d38..0000000000 --- a/app/sdks/0.6.2/client-flutter/docs/examples/examples/teams/update.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - - Future result = teams.update( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file