api: Implement GET /messages/<message_id>/history.
This commit is contained in:
parent
2da831bbe1
commit
f8fd7b6fbf
2 changed files with 29 additions and 0 deletions
|
@ -748,6 +748,16 @@ class Client(object):
|
|||
method='DELETE'
|
||||
)
|
||||
|
||||
def get_message_history(self, message_id):
|
||||
# type: (int) -> Dict[str, Any]
|
||||
'''
|
||||
See examples/message-history for example usage.
|
||||
'''
|
||||
return self.call_endpoint(
|
||||
url='messages/{}/history'.format(message_id),
|
||||
method='GET'
|
||||
)
|
||||
|
||||
def get_events(self, **request):
|
||||
# type: (**Any) -> Dict[str, Any]
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue