We are calling our Twilio account to send a SMS when form is filled out and need to install this library. Please advise : GitHub - twilio/twilio-node: Node.js helper library
Thanks for all help in advance
Hi,
Using npm install
(and then ‘require()’) is currently not supported. We are aware of the importance of this feature and it should be available sometime in the future. Meanwhile, consider trying a RESTful API. Take a look at the article Accessing 3rd Party Services for more information. You can also look at these examples:
-
How to Use Google Maps Services in Wix Code
I hope this helps.
Roi.
Is it supported now? I installed the twilio package but I don’t know how to call it. ‘require()’ - is not working for me. Thanks for your help
@willy-hayman Any news?
I am having the same problem. I was able to install the twilio package but ‘require()’ - is also not working.
Guys, I haven´t tried it yet, but “require” is not supported in Wix Code and is mandatory replaced by “import”. In the SendGrid NPM-example, you see this line as the “require”:
import sgMail from “@sendgrid/mail”;
Hi,
Try to import it:
import Twillo from ‘twillo’;
Please update us with your progress.
Roi.
I had the same problem and import instead of require solved it for me.
looks like require is ok to use according to @Yisrael (Wix) ??
I am trying to be able to configure my Twilio IVR from my wix backend which may or may not be possible via wix but very cool if so. The goal is to be able to have my employees update the “gather greeting” for holidays, etc without having to access my Twilio account. https://www.twilio.com/docs/voice/tutorials/ivr-phone-tree-node-express
I installed the twilio library and was wondering what I am missing to get the welcome function to respond to my request? https://upstarter.wixsite.com/rita/_functions/welcome Many thanks for your help with incredible wix code!!