Add offset and limit parameters.
@@ -1164,7 +1164,7 @@ class Client(object):
response = self.__handle_response(response)
return response.json()
- def get_messages(self, to = None, subject = None):
+ def get_messages(self, to = None, subject = None, offset = None, limit = None):
"""
**Only for Super User**. Retrieves all the messages sent to a list of usernames or emails and/or a particular e-mail subject
@@ -1177,7 +1177,7 @@ class Client(object):
:rtype: dict
"""
- response = requests.get(self.messages_url, params = { 'to': to, 'subject': subject }, headers = self.headers)
+ response = requests.get(self.messages_url, params = { 'to': to, 'subject': subject, 'offset': offset, 'limit': limit }, headers = self.headers)
response = self.__handle_response(response)
return response.json()['messages']
