Your IP : 216.73.216.91


Current Path : /var/node/inatote/Inatote-Backend/helpers/
Upload File :
Current File : //var/node/inatote/Inatote-Backend/helpers/twilio-helper.js

// Download the helper library from https://www.twilio.com/docs/node/install
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = "ACfe5e1d7d52ba792087341a5805f66000";
const authToken = "04dfc1dc833e69fb2944d35bf1d6e7a1";

import twilio from "twilio";

const client = twilio(accountSid, authToken);

var sendSms = async({ toNumber, message }) => {
        
        let messageResp = await client.messages
            .create({
                body: message,
                from: '+17792056156',
                to: toNumber
            })
            
            return messageResp
}

export default sendSms;