{"size": 416, "ext": "js", "max_stars_repo_path": "src/api/utils/twilioHelper.js", "max_stars_repo_name": "pandiyarajanmca/poperty-back", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/utils/twilioHelper.js", "max_issues_repo_name": "pandiyarajanmca/poperty-back", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/utils/twilioHelper.js", "max_forks_repo_name": "pandiyarajanmca/poperty-back", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.1111111111, "max_line_length": 54, "alphanum_fraction": 0.7235576923}
const twilio = require('twilio');
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const twilioNumber = process.env.TWILIO_PHONE_NUMBER;;

const client = new twilio(accountSid, authToken);

const sendMessage = (body, to) => {
  return client.messages.create({
    body,
    to,  // Text this number
    from: twilioNumber
  });
}

module.exports = {
  sendMessage
}