Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add get_message method

  • Loading branch information...
commit c989a90ddba09678f8e934fcd00815d688eefe90 1 parent 8e8fcba
@vipod authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 icontact/client.py
View
12 icontact/client.py
@@ -430,6 +430,18 @@ def messages(self, account_id=None, client_folder_id=None):
result = self._do_request('a/%s/c/%s/messages/' % (account_id, client_folder_id))
return result
+ def get_message(self, messageId, account_id=None, client_folder_id=None):
+ """
+ Gets message.
+ """
+ account_id, client_folder_id = self._required_values(account_id,
+ client_folder_id)
+
+ result = self._do_request('a/%s/c/%s/messages/%s' %
+ (account_id, client_folder_id, messageId),
+ method='get')
+ return result
+
def create_send(self, messageId, includeListIds, account_id=None,
client_folder_id=None, **kwargs):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.