Skip to content

add support for create MMS #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 5, 2019
Merged

Conversation

sarathsp06
Copy link
Contributor

Added functions for creare mms and some other changes

  • fixed 2.7 compatibility issue in setup.py and included that in .travis
  • updated base.py making utility functions to static methods
  • added creare mms function and test case for one happy scenario

@@ -110,6 +111,16 @@ def message_delete(self, id):
"""Delete a message from the dashboard."""
self.request_plain_text('messages/' + str(id), 'DELETE')

def mms_create(self, originator, recipients, body, mediaUrls, subject = None, reference = None, scheduledDatetime = None):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure where the documentation is or how explicit it may be, but there could be more info on the parameters of these methods I think. Now the user has to figure out by reading through the code what the exact format is for scheduledDatetime. Adding a small docstring here would help

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added docstring to the function

Copy link

@jostosh jostosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I'm not sure if the user will easily know what types/format to provide for all the method parameters.

@marcelcorso marcelcorso merged commit 9f2cd1e into messagebird:master Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants