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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...