backend/api/timerRouter.js
// fires an SMS to the user's number alerting them before each check in deadline that the check in is approaching and they can now check in
fires an SMS to the user's number alerting them before each check in deadline that the check in is approaching and they can now check in
fires an SMS to the user ' s number alerting them before each check in deadline that the check in is approaching and they can now check in
function fireUserSMS(user) {
  if (accountSid === "not authorized" || authToken === "not authorized") {
    console.log("userSMS fire attempt--twilio not authorized");
  } else {
    client.messages
      .create({
        body: `${user.username}, it\'s time to check in with JustNcase!`,
        from: twilioPhone,
        to: contactPhone
      })
      .then(message => {
        console.log(message.sid);
      })
      .done();
  }
}
function fireUserSMS ( user ) { if ( accountSid === "not authorized" || authToken === "not authorized" ) { console . log ( "userSMS fire attempt--twilio not authorized" ) ; } else { client . messages . create ( { body : ` ${ user . username } \' ` , from : twilioPhone , to : contactPhone } ) . then ( message => { console . log ( message . sid ) ; } ) . done ( ) ; } }
fires an SMS to the user's number alerting them before each check in deadline that the check in is approaching and they can now check in
fires an SMS to the user ' s number alerting them before each check in deadline that the check in is approaching and they can now check in