# 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('--conversationId', help='conversation ID that you want to create a message for', type=str,
                    required=True)
parser.add_argument('--channelId', help='channel ID that you want to create a message for', type=str, required=True)
parser.add_argument('--message', help='message that you want to send', type=str, required=True)
args = vars(parser.parse_args())

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

    msg = client.conversation_create_message(args['conversationId'],

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


# Path: examples/conversation_create_message.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('--conversationId', help='conversation ID that you want to create a message for', type=str,
                    required=True)
parser.add_argument('--channelId', help='channel ID that you want to create a message for', type=str, required=True)
parser.add_argument('--message', help='message that you want to send', type=str, required=True)
args = vars(parser.parse_args())

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

    msg = client.conversation_create_message(args['conversationId'],

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