# Path: messagebird/conversation_webhook.py
# CONVERSATION_WEBHOOK_EVENT_CONVERSATION_CREATED = 'conversation.created'
# 
# CONVERSATION_WEBHOOK_EVENT_CONVERSATION_UPDATED = 'conversation.updated'


import messagebird
import argparse
from messagebird.conversation_webhook import \
    CONVERSATION_WEBHOOK_EVENT_CONVERSATION_CREATED, \
    CONVERSATION_WEBHOOK_EVENT_CONVERSATION_UPDATED
#!/usr/bin/env python


parser = argparse.ArgumentParser()
parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True)
parser.add_argument('--webhookId', help='webhook that you want to update', type=str, required=True)
parser.add_argument('--url', help='url for the webhook', type=str)
parser.add_argument('--status', help='Status of the webhook. Can be set to "enabled" or "disabled"', type=str, default='enabled')
args = vars(parser.parse_args())

try:

# Path: messagebird/conversation_webhook.py
# CONVERSATION_WEBHOOK_EVENT_CONVERSATION_CREATED = 'conversation.created'
# 
# CONVERSATION_WEBHOOK_EVENT_CONVERSATION_UPDATED = 'conversation.updated'


# Path: examples/conversation_update_webhook.py
import messagebird
import argparse
from messagebird.conversation_webhook import \
    CONVERSATION_WEBHOOK_EVENT_CONVERSATION_CREATED, \
    CONVERSATION_WEBHOOK_EVENT_CONVERSATION_UPDATED

#!/usr/bin/env python


parser = argparse.ArgumentParser()
parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True)
parser.add_argument('--webhookId', help='webhook that you want to update', type=str, required=True)
parser.add_argument('--url', help='url for the webhook', type=str)
parser.add_argument('--status', help='Status of the webhook. Can be set to "enabled" or "disabled"', type=str, default='enabled')
args = vars(parser.parse_args())

try:

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