Dustin Shields-Cloues committed 8e8e3a8

Updated return type documentation for messages/search to include two additional fields, _id and metadata.

Comments (0)

Files changed (2)

         params = json.dumps(params)
         self.log('POST to %s%s.json: %s' % (ROOT, url, params))
         start = time.time()
-        r ='%s%s.json' % (ROOT, url), data=params, headers={'content-type': 'application/json', 'user-agent': 'Mandrill-Python/1.0.9'})
+        r ='%s%s.json' % (ROOT, url), data=params, headers={'content-type': 'application/json', 'user-agent': 'Mandrill-Python/1.0.10'})
             remote_addr = r.raw._original_response.fp._sock.getpeername() # grab the remote_addr before grabbing the text since the socket will go away
            array.  of structs for each matching message::
                [] (struct): the information for a single matching message::
                    [].ts (integer): the Unix timestamp from when this message was sent
+                   []._id (string): the message's unique id
                    [].sender (string): the email address of the sender
                    [].subject (string): the message's subject link
                    [].email (string): the recipient email address
                    [].opens (integer): how many times has this message been opened
                    [].clicks (integer): how many times has a link been clicked in this message
                    [].state (string): sending status of this message: sent, bounced, rejected
+                   [].metadata (struct): any custom metadata provided when the message was sent
     name = 'mandrill',
-    version = '1.0.9',
+    version = '1.0.10',
     author = 'Mandrill Devs',
     author_email = '',
     description = 'A CLI client and Python API library for the Mandrill email as a service platform.',