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
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...
- sh: vite: Permission denied
When installing the vue starter template as site and then adding DaisyUI, i get the error `sh: vite: Permission denied`. I also got this issue (with a fresh tem...
- Clean install of 1.9.0 shows errors in a...
I just run a full clean install of Appwrite on my server following the Manual installation guide in the docs page. The console seems to work, visually there d...