Hi, I’m exploring how the utopia-php/messaging package works. I want to integrate my own custom SMS provider into it and then use it with Appwrite.
Could you guide me through the steps to do this? A step-by-step explanation or a general overview of the integration process would be really helpful.
Thanks in advance!
where can I find switch ($provider) {
case 'twilio':
return new TwilioSMS($params);
case 'mycustom':
return new MyCustomSMS($params);
// ...
}
Hey, in the messaging library, there's a doc on how to add a new adapter: https://github.com/utopia-php/messaging/blob/main/docs/add-new-adapter.md
Once added there, you would need to add new API routes here (following the same pattern as the other SMS providers): https://github.com/appwrite/appwrite/blob/1.8.x/app/controllers/api/messaging.php
Then add in the worker switch case: https://github.com/appwrite/appwrite/blob/290a7b27db0aa54dfb5a26d06f3975f096f5ad67/src/Appwrite/Platform/Workers/Messaging.php#L424
And finally you'd need to handle the new provider on the console: https://github.com/appwrite/console/blob/48038c93a271ec8717011363229cd99701849a07/src/routes/(console)/project-%5Bregion%5D-%5Bproject%5D/messaging/provider.svelte#L2
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...