예제 #1
0
파일: sms.py 프로젝트: wahhid/just-a-dash
def manually_send_message():
    client = TwilioRestClient(account_sid, auth_token)
    # - Note: The from_ number must be a valid Twilio phone number. The to number can be any outgoing number.
    # to = "+12316851234"
    # from_ = "+10000000000"
    phone_number = 'some number'
    to = phone_number
    from_ = twilio_number
    body = CompanyContacts.check_in(from_)
    client.messages.create(to, from_, body)
예제 #2
0
파일: sms.py 프로젝트: joeflack4/vanillerp
def manually_send_message():
    client = TwilioRestClient(account_sid, auth_token)
    # - Note: The from_ number must be a valid Twilio phone number. The to number can be any outgoing number.
    # to = "+12316851234"
    # from_ = "+10000000000"
    phone_number = 'some number'
    to = phone_number
    from_ = twilio_number
    body = CompanyContacts.check_in(from_)
    client.messages.create(to, from_, body)
예제 #3
0
파일: sms.py 프로젝트: wahhid/just-a-dash
def sms_response():
    resp = twilio.twiml.Response()
    from_ = twilio_number
    body = CompanyContacts.check_in(from_)
    resp.message(body)
    return str(resp)
예제 #4
0
파일: sms.py 프로젝트: joeflack4/vanillerp
def sms_response():
    resp = twilio.twiml.Response()
    from_ = twilio_number
    body = CompanyContacts.check_in(from_)
    resp.message(body)
    return str(resp)