I am trying to create a function from appwrite to send an SMS from my Flutter application using Twilio. I know appwrite has a built in api to send SMS for phone authentication , but this is not what I need, I want to create customised SMS that will be sent to the user upon request, containing data collected from the app
Everything I found on the web is discussing Appwrite functions and SMSes for authentication, some Youtube videos do refer to sending SMS but with JavaScript, and I am having hard time connecting the dots.... Any help will be appreciated
hi, any chance you saw this and this is of help to you? https://dev.to/appwrite/phone-authentication-with-appwrite-and-twilio-26ek
Thank you for your response, As I mentioned in My post, I have seen this tutorials many time , and they do not help me with my goal, I dont need SMS for auth.
I am searching through twilio docs and I cannot see dart or flutter in their docs but there should be something
ok, how does this sound, you use appwrite functions for this and you said you have seen a lot of blogs and they have login authentication using phone, instead we can create a criteria that triggers the function https://www.twilio.com/blog/sending-sms-messages-dart-twilio-programmable-sms
the tricky part is using it to serve a purpose other than login and authentication
give me some time to look around more
Why don't you look at this flutter package? https://pub.dev/packages/twilio_flutter
I think its way outdated
Oh yeah I just saw. My bad.
Well, Twilio SMS has a REST API that you can use https://www.twilio.com/docs/sms/api
You could do what Jyoti said, and create a function to do this with Nodejs or one of the other supported frameworks by Twilio. I think it's better that way
This package is great, but it works in the frontEnd and comes with many potential problems, in Security: you transfer you AuthToken and the SID to the FrontEnd, and if this is not enough, once you decide to renew the token, you will need to update the app, running it in the backend solves both problems, if it works….
we are discussing this in Office hours rn
@Aditya Oberai shared this: https://dev.to/adityaoberai/rick-roll-your-friends-using-appwrite-twilio-and-net-4180
here's another example: https://github.com/open-runtimes/examples/tree/main/python/send_message
Recommended threads
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...
- Appwrite Function getting general_unauth...
Hi everyone, I'm trying to create a database schema using an Appwrite Function written in Dart from Appwrite console, but I'm getting an authorization error wh...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...