# Path: messagebird/conversation_message.py
# MESSAGE_TYPE_TEXT = "text"


import argparse
import messagebird
from messagebird.conversation_message import MESSAGE_TYPE_TEXT
#!/usr/bin/env python

parser = argparse.ArgumentParser()
parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True)
parser.add_argument('--channelId', help='channel that you want to start a conversation', type=str, required=True)
parser.add_argument('--phoneNumber', help='phone number that you want to send a message', type=str, required=True)
parser.add_argument('--textMessage', help='text that you want to send', type=str, required=True)
args = vars(parser.parse_args())

try:
    client = messagebird.Client(args['accessKey'])

    msg = client.conversation_start(

# Path: messagebird/conversation_message.py
# MESSAGE_TYPE_TEXT = "text"


# Path: examples/conversation_start.py
import argparse
import messagebird
from messagebird.conversation_message import MESSAGE_TYPE_TEXT

#!/usr/bin/env python

parser = argparse.ArgumentParser()
parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True)
parser.add_argument('--channelId', help='channel that you want to start a conversation', type=str, required=True)
parser.add_argument('--phoneNumber', help='phone number that you want to send a message', type=str, required=True)
parser.add_argument('--textMessage', help='text that you want to send', type=str, required=True)
args = vars(parser.parse_args())

try:
    client = messagebird.Client(args['accessKey'])

    msg = client.conversation_start(

        {'channelId': args['channelId'], 'to': args['phoneNumber'], 'type': MESSAGE_TYPE_TEXT,