Commits

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 = self.session.post('%s%s.json' % (ROOT, url), data=params, headers={'content-type': 'application/json', 'user-agent': 'Mandrill-Python/1.0.9'})
+        r = self.session.post('%s%s.json' % (ROOT, url), data=params, headers={'content-type': 'application/json', 'user-agent': 'Mandrill-Python/1.0.10'})
         try:
             remote_addr = r.raw._original_response.fp._sock.getpeername() # grab the remote_addr before grabbing the text since the socket will go away
         except:
            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
 
 
         Raises:
 
 setup(
     name = 'mandrill',
-    version = '1.0.9',
+    version = '1.0.10',
     author = 'Mandrill Devs',
     author_email = 'community@mandrill.com',
     description = 'A CLI client and Python API library for the Mandrill email as a service platform.',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.