コード例 #1
0
def send_via_phone(connection):
    """
    Send a message via a phone number.
    """
    message = TextMessage(connection=connection,
                          phone='41791234567',
                          text='Hello from the world of Python!')
    return message.send()
コード例 #2
0
def send_via_email(connection):
    """
    Send a message via an email address.
    """
    message = TextMessage(connection=connection,
                          email='*****@*****.**',
                          text='Hello from the world of Python!')
    return message.send()
コード例 #3
0
def send_via_id(connection):
    """
    Send a message to a specific Threema ID.
    """
    message = TextMessage(connection=connection,
                          to_id='ECHOECHO',
                          text='Hello from the world of Python!')
    return message.send()
コード例 #4
0
def send_via_phone():
    """
    Send a message via a phone number.
    """
    message = TextMessage(
        connection=connection,
        phone='41791234567',
        text='Hello from the world of Python!'
    )
    return message.send()
コード例 #5
0
def send_via_email():
    """
    Send a message via an email address.
    """
    message = TextMessage(
        connection=connection,
        email='*****@*****.**',
        text='Hello from the world of Python!'
    )
    return message.send()
コード例 #6
0
def send_via_id():
    """
    Send a message to a specific Threema ID.
    """
    message = TextMessage(
        connection=connection,
        id='ECHOECHO',
        text='Hello from the world of Python!'
    )
    return message.send()