From 3c9a6cec9ca4d650eecca8780f897f625e1a6a8e Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:12:52 +0100 Subject: [PATCH 01/14] Update APN dart --- src/routes/docs/products/messaging/apns/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/apns/+page.markdoc b/src/routes/docs/products/messaging/apns/+page.markdoc index 9ca3bf2921..8480e33af0 100644 --- a/src/routes/docs/products/messaging/apns/+page.markdoc +++ b/src/routes/docs/products/messaging/apns/+page.markdoc @@ -249,7 +249,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async{ // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -259,7 +259,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.updateApnsProvider( + Future result = await messaging.updateApnsProvider( providerId: '[PROVIDER_ID]', name: '[NAME]', // optional enabled: false, // optional From 0952c72fe1a610af795b09678b2afe0ca54c4731 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:15:48 +0100 Subject: [PATCH 02/14] Update fcm dart --- src/routes/docs/products/messaging/fcm/+page.markdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/docs/products/messaging/fcm/+page.markdoc b/src/routes/docs/products/messaging/fcm/+page.markdoc index 48154b74dc..8981cb1695 100644 --- a/src/routes/docs/products/messaging/fcm/+page.markdoc +++ b/src/routes/docs/products/messaging/fcm/+page.markdoc @@ -228,7 +228,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -238,7 +238,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.updateFCMProvider( + Future result = await messaging.updateFCMProvider( providerId: '[PROVIDER_ID]', name: '[NAME]', // optional enabled: false, // optional @@ -327,4 +327,4 @@ let provider = try await messaging.updateFCMProvider( {% /multicode %} {% /tabsitem %} {% /tabs %} -{% /section %} \ No newline at end of file +{% /section %} From a29ce31b64b96be9083d90bc95d611d3f546528f Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:16:20 +0100 Subject: [PATCH 03/14] Update mailgun Dart --- src/routes/docs/products/messaging/mailgun/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/mailgun/+page.markdoc b/src/routes/docs/products/messaging/mailgun/+page.markdoc index 567f81356b..c33ffafe8e 100644 --- a/src/routes/docs/products/messaging/mailgun/+page.markdoc +++ b/src/routes/docs/products/messaging/mailgun/+page.markdoc @@ -191,7 +191,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -201,7 +201,7 @@ void main() { // Init SDK .setKey('') // Your secret API key ; - Future result = messaging.createEmail( + Future result = await messaging.createEmail( messageId:'' , subject:'' , content:'' , From f5e6347bcae815f8b4c4db6d6aa00474a18751dc Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:16:53 +0100 Subject: [PATCH 04/14] Update messages Dart --- src/routes/docs/products/messaging/messages/+page.markdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/docs/products/messaging/messages/+page.markdoc b/src/routes/docs/products/messaging/messages/+page.markdoc index 37baa25095..dbfa7a7f11 100644 --- a/src/routes/docs/products/messaging/messages/+page.markdoc +++ b/src/routes/docs/products/messaging/messages/+page.markdoc @@ -419,7 +419,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -429,7 +429,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createPush( + Future result = await messaging.createPush( messageId: '[MESSAGE_ID]', title: '[TITLE]', body: '[BODY]', @@ -1133,4 +1133,4 @@ let message = try await messaging.createSms( {% arrow_link href="/docs/products/messaging/send-sms-messages" %} Learn more about sending a SMS message -{% /arrow_link %} \ No newline at end of file +{% /arrow_link %} From 057fc7b6d9f8fe608888d86715c1f622e2b96c1b Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:17:22 +0100 Subject: [PATCH 05/14] Update msg91 Dart --- src/routes/docs/products/messaging/msg91/+page.markdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/docs/products/messaging/msg91/+page.markdoc b/src/routes/docs/products/messaging/msg91/+page.markdoc index e68c3a93e8..59bf0720d7 100644 --- a/src/routes/docs/products/messaging/msg91/+page.markdoc +++ b/src/routes/docs/products/messaging/msg91/+page.markdoc @@ -214,7 +214,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -224,7 +224,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createSms( + Future result = await messaging.createSms( messageId: '[MESSAGE_ID]', content: '[CONTENT]', topics: [], // optional @@ -591,4 +591,4 @@ let provider = try await messaging.updateMsg91Provider( {% /multicode %} {% /tabsitem %} {% /tabs %} -{% /section %} \ No newline at end of file +{% /section %} From c7be456cd0041a31cebb1327a7fe50285980b1a5 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:18:44 +0100 Subject: [PATCH 06/14] Update send-email-messages Dart --- .../docs/products/messaging/send-email-messages/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index ef0402ce06..bc34077d08 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -396,7 +396,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -406,7 +406,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createTopic( + Future result = await messaging.createTopic( topicId: '[TOPIC_ID]', name: '[NAME]', ); From 3be74cd0df0e55f0f78903e576e5b03e5f34f190 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:19:16 +0100 Subject: [PATCH 07/14] Update send-push-notifications Dart --- .../products/messaging/send-push-notifications/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc index fb71a08265..81437ce273 100644 --- a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc +++ b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc @@ -660,7 +660,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -670,7 +670,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createPush( + Future result = await messaging.createPush( messageId: '[MESSAGE_ID]', title: '[TITLE]', body: '[BODY]', From 5a916001041782595ee12f3553453609fc2970b0 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:21:40 +0100 Subject: [PATCH 08/14] Update sendgrid Dart --- src/routes/docs/products/messaging/sendgrid/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index 3800505d31..f1547e2ae8 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -184,7 +184,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -194,7 +194,7 @@ void main() { // Init SDK .setKey('') // Your secret API key ; - Future result = messaging.createEmail( + Future result = await messaging.createEmail( messageId:'' , subject:'' , content:'' , From 6c15fbd41c6efea7f1b3b3948990f88da885d62d Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:22:04 +0100 Subject: [PATCH 09/14] Update +page.markdoc --- src/routes/docs/products/messaging/smtp/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/smtp/+page.markdoc b/src/routes/docs/products/messaging/smtp/+page.markdoc index b45cfb126c..988bec65b1 100644 --- a/src/routes/docs/products/messaging/smtp/+page.markdoc +++ b/src/routes/docs/products/messaging/smtp/+page.markdoc @@ -193,7 +193,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -203,7 +203,7 @@ void main() { // Init SDK .setKey('') // Your secret API key ; - Future result = messaging.createEmail( + Future result = await messaging.createEmail( messageId:'' , subject:'' , content:'' , From bf69bf6f6c8b8be03a1c80c17b9c60448e2e58e3 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:22:41 +0100 Subject: [PATCH 10/14] Update telesign Dart --- src/routes/docs/products/messaging/telesign/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/telesign/+page.markdoc b/src/routes/docs/products/messaging/telesign/+page.markdoc index 45f3f77d13..e6d7626558 100644 --- a/src/routes/docs/products/messaging/telesign/+page.markdoc +++ b/src/routes/docs/products/messaging/telesign/+page.markdoc @@ -213,7 +213,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -223,7 +223,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createSms( + Future result = await messaging.createSms( messageId: '[MESSAGE_ID]', content: '[CONTENT]', topics: [], // optional From baa0cc3217603fd5fa5cf4c1ff907b2697723845 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:23:05 +0100 Subject: [PATCH 11/14] Update textmagic Dart --- src/routes/docs/products/messaging/textmagic/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/textmagic/+page.markdoc b/src/routes/docs/products/messaging/textmagic/+page.markdoc index dfabd39bef..eeb01e7279 100644 --- a/src/routes/docs/products/messaging/textmagic/+page.markdoc +++ b/src/routes/docs/products/messaging/textmagic/+page.markdoc @@ -213,7 +213,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -223,7 +223,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createSms( + Future result = await messaging.createSms( messageId: '[MESSAGE_ID]', content: '[CONTENT]', topics: [], // optional From d4018216520e8a041a4ba8d8d2e66864675e6805 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:23:32 +0100 Subject: [PATCH 12/14] Update topics Dart --- src/routes/docs/products/messaging/topics/+page.markdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/docs/products/messaging/topics/+page.markdoc b/src/routes/docs/products/messaging/topics/+page.markdoc index 455e8f798a..2833694309 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -170,7 +170,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -180,7 +180,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createTopic( + Future result = await messaging.createTopic( topicId: '[TOPIC_ID]', name: '[NAME]', subscribe: '[ROLES]' // permission roles for who can subscribe @@ -500,4 +500,4 @@ let subscriber = try await messaging.createSubscriber( ``` {% /multicode %} {% /tabsitem %} -{% /tabs %} \ No newline at end of file +{% /tabs %} From b9adef64447cc69f55877bac874ac40907720c2f Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:24:04 +0100 Subject: [PATCH 13/14] Update twilio Dart --- src/routes/docs/products/messaging/twilio/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/messaging/twilio/+page.markdoc b/src/routes/docs/products/messaging/twilio/+page.markdoc index 7f5f9bf231..c0b335d27f 100644 --- a/src/routes/docs/products/messaging/twilio/+page.markdoc +++ b/src/routes/docs/products/messaging/twilio/+page.markdoc @@ -215,7 +215,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -225,7 +225,7 @@ void main() { // Init SDK .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; - Future result = messaging.createSms( + Future result = await messaging.createSms( messageId: '[MESSAGE_ID]', content: '[CONTENT]', topics: [], // optional From 36ddee2daeef636eaca66fe34c3c4b0a0516c021 Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:29:14 +0100 Subject: [PATCH 14/14] Missed formatting fix --- src/routes/docs/products/messaging/apns/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/products/messaging/apns/+page.markdoc b/src/routes/docs/products/messaging/apns/+page.markdoc index 8480e33af0..e1a2172f72 100644 --- a/src/routes/docs/products/messaging/apns/+page.markdoc +++ b/src/routes/docs/products/messaging/apns/+page.markdoc @@ -249,7 +249,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() async{ // Init SDK +void main() async { // Init SDK Client client = Client(); Messaging messaging = Messaging(client);