# Path: messagebird/voice_webhook.py
# class VoiceCreateWebhookRequest(Base):
#     def __init__(self, title=None, url=None, token=None):
#         validate_is_not_blank(url, "url cannot be empty")
#         self.title = title
#         self._url = url
#         self.token = token
# 
#     @property
#     def url(self):
#         return self._url
# 
#     @url.setter
#     def url(self, value):
#         validate_is_not_blank(value, "url cannot be empty")
#         self._url = value
# 
#     def __dict__(self):
#         return {
#             'title': self.title,
#             'url': self.url,
#             'token': self.token
#         }
# 
#     def __str__(self):
#         return "\n".join([
#             'title  : %s' % self.title,
#             'url  : %s' % self.url,
#             'token  : %s' % self.token,
#         ])


import argparse
import messagebird
from messagebird.voice_webhook import VoiceCreateWebhookRequest
#!/usr/bin/env python

parser = argparse.ArgumentParser()
parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True)
parser.add_argument('--url', help='url for the webhook', type=str, required=True)

# Path: messagebird/voice_webhook.py
# class VoiceCreateWebhookRequest(Base):
#     def __init__(self, title=None, url=None, token=None):
#         validate_is_not_blank(url, "url cannot be empty")
#         self.title = title
#         self._url = url
#         self.token = token
# 
#     @property
#     def url(self):
#         return self._url
# 
#     @url.setter
#     def url(self, value):
#         validate_is_not_blank(value, "url cannot be empty")
#         self._url = value
# 
#     def __dict__(self):
#         return {
#             'title': self.title,
#             'url': self.url,
#             'token': self.token
#         }
# 
#     def __str__(self):
#         return "\n".join([
#             'title  : %s' % self.title,
#             'url  : %s' % self.url,
#             'token  : %s' % self.token,
#         ])


# Path: examples/voice_create_webhook.py
import argparse
import messagebird
from messagebird.voice_webhook import VoiceCreateWebhookRequest

#!/usr/bin/env python

parser = argparse.ArgumentParser()
parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True)
parser.add_argument('--url', help='url for the webhook', type=str, required=True)

parser.add_argument('--title', help='title for the webhook', type=str)