{ "info": { "author": "Eric Rasmussen", "author_email": "eric@chromaticleaves.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "PostMonkey 1.0b\n===============\n\n`PostMonkey` is a simple Python (2.6+) wrapper for MailChimp's API\nversion 1.3.\n\n\nFeatures\n========\n\n1) 100% test coverage\n2) Connection handling via the excellent `Requests `_ library\n3) Configurable timeout\n4) Simple `Exceptions`\n\n\nBasic Usage\n===========\n\nOnce you create a `PostMonkey` instance with your MailChimp API key,\nyou can use it to call MailChimp's API methods directly:\n\n.. code-block:: python\n\n from postmonkey import PostMonkey\n pm = PostMonkey('your_api_key')\n pm.ping() # returns u\"Everything's Chimpy!\"\n\n\nIf the MailChimp method call accepts parameters, you can supply them in the form\nof keyword arguments. See `Examples`_ for common use cases, and refer to the\n`MailChimp API v1.3 official documentation\n`_ for a complete list of method calls,\nparameters, and response objects.\n\nMailChimp has established guidelines/limits for API usage, so please refer\nto their `FAQ `_ for information.\n\n**Note**: it is the caller's responsibility to supply valid method names and any\nrequired parameters. If MailChimp receives an invalid request, `PostMonkey`\nwill raise a `postmonkey.exceptions.MailChimpException` containing the\nerror code and message. See `MailChimp API v1.3 - Exceptions\n`_ for additional\ndetails.\n\n\nExamples\n========\n\nCreate a new `PostMonkey` instance with a 10 second timeout for requests:\n\n.. code-block:: python\n\n from postmonkey import PostMonkey\n pm = PostMonkey('your_api_key', timeout=10)\n\n\nGet the IDs for your campaign lists:\n\n.. code-block:: python\n\n lists = pm.lists()\n\n # print the ID and name of each list\n for list in lists['data']:\n print list['id'], list['name']\n\n\nSubscribe \"emailaddress\" to list ID 5:\n\n.. code-block:: python\n\n pm.listSubscribe(id=5, email_address=\"emailaddress\")\n\n\nCatch an exception returned by MailChimp (invalid list ID):\n\n.. code-block:: python\n\n from postmonkey import MailChimpException\n try:\n pm.listSubscribe(id=42, email_address=\"emailaddress\")\n except MailChimpException, e:\n print e.code # 200\n print e.error # u'Invalid MailChimp List ID: 42'\n\n\nGet campaign data for all \"sent\" campaigns:\n\n.. code-block:: python\n\n campaigns = pm.campaigns(filters=[{'status': 'sent'}])\n\n # print the name and count of emails sent for each campaign\n for c in campaigns['data']:\n print c['title'], c['emails_sent']\n\n\n\n=========\nChangelog\n=========\n\n-Initial Release\n\n-2012-10-11: Quote JSON string before sending POST request\n\n-2013-07-03: Documentation updates and version bump (no code changes)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://postmonkey.readthedocs.org/", "keywords": "mailchimp", "license": "FreeBSD", "maintainer": null, "maintainer_email": null, "name": "postmonkey", "package_url": "https://pypi.org/project/postmonkey/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/postmonkey/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://postmonkey.readthedocs.org/" }, "release_url": "https://pypi.org/project/postmonkey/1.0b/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for Mailchimp API", "version": "1.0b" }, "last_serial": 807798, "releases": { "1.0a": [ { "comment_text": "", "digests": { "md5": "af1f8be1cca844e82e4133f9d0dcd9f5", "sha256": "63b4e0b02cfa045e67da0ac05202fa6a773776823e9d636c2c04919923cada9c" }, "downloads": -1, "filename": "postmonkey-1.0a.tar.gz", "has_sig": false, "md5_digest": "af1f8be1cca844e82e4133f9d0dcd9f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6100, "upload_time": "2012-05-22T01:14:34", "url": "https://files.pythonhosted.org/packages/4d/20/730557ebb5dc80c8a9d34eed6ccc45310a8bbe9810e6925e8ad9dca04d60/postmonkey-1.0a.tar.gz" } ], "1.0a1": [ { "comment_text": "", "digests": { "md5": "e8c2068c964a6f863037a746c9fe8abc", "sha256": "2fcd838d77290a3d699a3cb217f1fa5bde32176af976a957b4cef30c6cb074dc" }, "downloads": -1, "filename": "postmonkey-1.0a1.tar.gz", "has_sig": false, "md5_digest": "e8c2068c964a6f863037a746c9fe8abc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6272, "upload_time": "2012-05-22T01:15:43", "url": "https://files.pythonhosted.org/packages/a0/e7/d87c37e251dc9de029bea85135625d4406b37733970cc08f72865a7b9975/postmonkey-1.0a1.tar.gz" } ], "1.0a2": [ { "comment_text": "", "digests": { "md5": "0599aaf0871aa245d15d4d176ff7aa72", "sha256": "a62fd0aa47f259592815f9c2dfa9006ce2a50e76195a89c471f46317f6ac60a3" }, "downloads": -1, "filename": "postmonkey-1.0a2.tar.gz", "has_sig": false, "md5_digest": "0599aaf0871aa245d15d4d176ff7aa72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6325, "upload_time": "2012-05-22T01:17:42", "url": "https://files.pythonhosted.org/packages/2f/4e/6f7c554e393617047ba298a293b85e9f24ad18d03375942c6b3c3b77ecd6/postmonkey-1.0a2.tar.gz" } ], "1.0a3": [ { "comment_text": "", "digests": { "md5": "a31531c374dab982d4bd4512fc2c716c", "sha256": "cd6b93f685e2b9c8dc06022d64d49f10773ee7724956f985f954168ab09e6b9e" }, "downloads": -1, "filename": "postmonkey-1.0a3.tar.gz", "has_sig": false, "md5_digest": "a31531c374dab982d4bd4512fc2c716c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6520, "upload_time": "2012-06-22T18:55:57", "url": "https://files.pythonhosted.org/packages/18/3a/b3b6cf75c9b59b5492600fd71e1670006845f68dbb660b430c9561a269e4/postmonkey-1.0a3.tar.gz" } ], "1.0a4": [ { "comment_text": "", "digests": { "md5": "22303a124407dee9fcf5bace9d6bde17", "sha256": "68ab739e581c57c815d909c3745842a69972186274ca43075e524985f3006890" }, "downloads": -1, "filename": "postmonkey-1.0a4.tar.gz", "has_sig": false, "md5_digest": "22303a124407dee9fcf5bace9d6bde17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6644, "upload_time": "2012-10-12T00:35:16", "url": "https://files.pythonhosted.org/packages/78/72/9890d4801f0af42f55f3821b4d70aa04eaaa7b281319845e83a766f1ec31/postmonkey-1.0a4.tar.gz" } ], "1.0b": [ { "comment_text": "", "digests": { "md5": "c298e412d9828669b28839459cd8233f", "sha256": "ee8e6ef146266949136bdc0ce9a03b45d985f6cf909024324e04f79dfa7186cf" }, "downloads": -1, "filename": "postmonkey-1.0b.tar.gz", "has_sig": false, "md5_digest": "c298e412d9828669b28839459cd8233f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6665, "upload_time": "2013-07-04T06:25:05", "url": "https://files.pythonhosted.org/packages/b9/68/649343c7771120216165d2aa6a1cea47df713e80b82664c3369263d35c58/postmonkey-1.0b.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c298e412d9828669b28839459cd8233f", "sha256": "ee8e6ef146266949136bdc0ce9a03b45d985f6cf909024324e04f79dfa7186cf" }, "downloads": -1, "filename": "postmonkey-1.0b.tar.gz", "has_sig": false, "md5_digest": "c298e412d9828669b28839459cd8233f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6665, "upload_time": "2013-07-04T06:25:05", "url": "https://files.pythonhosted.org/packages/b9/68/649343c7771120216165d2aa6a1cea47df713e80b82664c3369263d35c58/postmonkey-1.0b.tar.gz" } ] }