backend/sweettweet/api.py
def send_alert(phone_number):
    '''
    Send an SMS alert to @phone_number to warn about 
    impending hypoglycemia using Twilio service
    '''
    if phone_number:

        message = 'Your blood sugar level is likely to dip below 70 in the next half hour. How about some orange juice?'

        twilio_service = TwilioService()

        try:
            twilio_service.send_message(message, phone_number)
            
        except TwilioRestException as e:
            print(e)

    else:
        print("No alert sent - missing phone number")

    Send an SMS alert to @phone_number to warn about 
    impending hypoglycemia using Twilio service
    
Send an SMS alert to @phone_number to warn about
impending hypoglycemia using Twilio service
Send an SMS alert to @phone_number to warn about impending hypoglycemia using Twilio service
def send_alert(phone_number):
    if phone_number:
        message = 'Your blood sugar level is likely to dip below 70 in the next half hour. How about some orange juice?'
        twilio_service = TwilioService()
        try:
            twilio_service.send_message(message, phone_number)
        except TwilioRestException as e:
            print(e)
    else:
        print("No alert sent - missing phone number")
def send_alert ( phone_number ) : if phone_number : message = 'Your blood sugar level is likely to dip below 70 in the next half hour. How about some orange juice?' twilio_service = TwilioService ( ) try : twilio_service . send_message ( message , phone_number ) except TwilioRestException as e : print ( e ) else : print ( "No alert sent - missing phone number" )
Send an SMS alert to @phone_number to warn about
impending hypoglycemia using Twilio service
Send an SMS alert to @phone_number to warn about impending hypoglycemia using Twilio service
'''
    Send an SMS alert to @phone_number to warn about 
    impending hypoglycemia using Twilio service
    '''
phone_number