{ "info": { "author": "AWeber API Team", "author_email": "api@aweber.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "AWeber API Python Library\n------------------------- \nThe AWeber API Python Library allows you to quickly get up and running with\nintegrating access to the AWeber API into your Python applications. This\nlibrary requires the python-oauth2 to handle the authentication. \n\n.. image:: https://secure.travis-ci.org/aweber/AWeber-API-Python-Library.png?branch=master\n :target: https://secure.travis-ci.org/aweber/AWeber-API-Python-Library\n\n.. image:: https://pypip.in/v/aweber_api/badge.png\n :target: https://pypi.python.org/pypi/aweber_api/\n :alt: Latest Version\n\n.. image:: https://pypip.in/license/aweber_api/badge.png\n :target: https://pypi.python.org/pypi/aweber_api/\n :alt: License\n\nInstallation\n============\n\nThe library can be installed by checking out the source::\n\n $ sudo python setup.py install\n\nOr can be installed using easy_install::\n\n $ easy_install aweber_api\n\nOr pip::\n\n $ pip install aweber_api\n\nCompatibility\n=============\nThe client library has been tested as compatible with python versions:\n\n* 2.6\n* 2.7\n\nTesting\n=======\n\nPlace the client library into a virtualenv and execute the test suite by running the following command::\n\n $ python setup.py nosetests\n\nAlso, the project can use tox to run against multiple versions of python. The tox package is available \nfrom pypi here::\n\n https://pypi.python.org/pypi/tox\n\nInstructions for how to use and configure tox can be found here::\n\n http://tox.readthedocs.org/en/latest/#\n\nCurrently, running tox will require that both python 2.6 and python 2.7 are installed.\n\nAdditional interpreters may be installed and the tox.ini file must be modified to include the\nnewly added interpreters. Once the interpreters are installed, the tests can be run via::\n\n $ tox\n\n\nUsage\n=====\n\nTo connect the AWeber API Python Libray, you simply include the main class,\nAWeberAPI in your application, then create an instace of it with your \napplication's consumer key and secret.::\n\n from aweber_api import AWeberAPI\n aweber = AWeberAPI(consumer_key, consumer_secret)\n account = aweber.get_account(access_token, token_secret)\n\n for list in account.lists:\n print list.name\n\nHandling Errors\n+++++++++++++++\n\nSometimes errors happen and your application should handle them appropriately.\nWhenever an API error occurs an AWeberAPIException will be raised with a\ndetailed error message and documentation link to explain whats wrong.\n\nYou should wrap any calls to the API in a try/except block.\n\nCommon Errors:\n * Resource not found (404 error)\n * Your application has been rate limited (403 error)\n * Bad request (400 error)\n * API Temporarily unavailable (503 error)\n\nRefer to https://labs.aweber.com/docs/troubleshooting for the complete list::\n\n from aweber_api import AWeberAPI, APIException\n aweber = AWeberAPI(consumer_key, consumer_secret)\n account = aweber.get_account(access_token, token_secret)\n\n\n try:\n invalid_resource = account.load_from_url('/idontexist')\n except APIException, exc:\n print '404! {0}'.format(exc)\n\n try:\n print len(account.lists)\n except APIException, exc:\n print 'hmm, something unexpected happened!: {0}'.format(exc)\n\n\nGetting request tokens / access tokens\n++++++++++++++++++++++++++++++++++++++\n\nYou can also use the AWeberAPI object to handle retrieving request tokens::\n\n from aweber_api import AWeberAPI\n aweber = AWeberAPI(consumer_key, consumer_secret)\n request_token, request_token_secret = aweber.get_request_token(callback_url)\n print aweber.authorize_url\n\nAs well as access tokens::\n\n from aweber_api import AWeberAPI\n aweber = AWeberAPI(consumer_key, consumer_secret)\n aweber.user.verifier = verifier\n aweber.user.request_token = request_token\n aweber.user.token_secret = request_token_secret\n access_token, access_token_secret = aweber.get_access_token()\n\n\nFull Pylons example\n+++++++++++++++++++\n\nHere is a simple Pylons example that uses the AWeber API Python Library to get\na request token, have it authorized, and then print some basic stats about the\nweb forms in that user's lists::\n\n from pylons import session, request, tmpl_context as c\n from pylons.controllers.util import redirect \n\n from awebertest.lib.base import BaseController, render\n\n from aweber_api import AWeberAPI\n\n url = 'http://localhost:5000'\n consumer_key = \"vjckgsr5y4gfOa3PWnf\"\n consumer_secret = \"u3sQ7vGGJBfds4q5dfgsTESi685c5x2wm6gZuIj\"\n class DemoController(BaseController):\n\n def __before__(self):\n self.aweber = AWeberAPI(consumer_key, consumer_secret)\n\n def index(self):\n token, secret = self.aweber.get_request_token(url+'/demo/get_access')\n session['request_token_secret'] = secret\n session.save()\n redirect(self.aweber.authorize_url)\n\n def get_access(self):\n self.aweber.user.request_token = request.params['oauth_token']\n self.aweber.user.token_secret = session['request_token_secret']\n self.aweber.user.verifier = request.params['oauth_verifier']\n session['token'], session['secret'] = self.aweber.get_access_token()\n session.save()\n redirect(url+'/demo/show')\n\n def show(self):\n c.account = self.aweber.get_account(session['token'], session['secret'])\n return render('data.mako')\n\n\nIn `data.mako`::\n\n \n \n \n

Web Forms

\n % for list in c.account.lists:\n List Id: ${list.id}, name: ${list.name}
\n Currently has: ${len(list.web_forms)} web forms\n \n % endfor\n \n \n", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/aweber_api", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aweber/AWeber-API-Python-Library", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "aweber_api", "package_url": "https://pypi.org/project/aweber_api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/aweber_api/", "project_urls": { "Download": "http://pypi.python.org/pypi/aweber_api", "Homepage": "https://github.com/aweber/AWeber-API-Python-Library" }, "release_url": "https://pypi.org/project/aweber_api/1.4.0/", "requires_dist": null, "requires_python": null, "summary": "A python client library for the AWeber API.", "version": "1.4.0" }, "last_serial": 1392328, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "de27231ad7ac215500a7092b44549369", "sha256": "66d52bc31a7da5701d3a15e18c496de899abcf5b318eed5e8563f7f5960f8557" }, "downloads": -1, "filename": "aweber_api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "de27231ad7ac215500a7092b44549369", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4156, "upload_time": "2010-11-24T17:05:24", "url": "https://files.pythonhosted.org/packages/e2/f6/f53933b38617ee7e46c85690ab9daa77b8b670381bfd87f575013c02f5a2/aweber_api-1.0.1.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "829574d0243bd1e1b73301f15abea436", "sha256": "5bbcd11f45b47f12d5c5eb5b97f3b3f004dcaf73b0092fd1183e8af81d1a8202" }, "downloads": -1, "filename": "aweber_api-1.0.3.tar.gz", "has_sig": false, "md5_digest": "829574d0243bd1e1b73301f15abea436", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5427, "upload_time": "2011-04-07T20:16:04", "url": "https://files.pythonhosted.org/packages/8c/3b/2c1bf2f6f0e36338d00f4f4e04cc8c6bcf31bea158e706c3cba2ca487935/aweber_api-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "c49daa6e339ff74fab0d13f89c5e7dc8", "sha256": "86f1f2417449c123765002cc57ff62a7c1ea876d89893e6f7299e4fc0e20c9f8" }, "downloads": -1, "filename": "aweber_api-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c49daa6e339ff74fab0d13f89c5e7dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5836, "upload_time": "2011-06-02T16:01:31", "url": "https://files.pythonhosted.org/packages/55/f8/d0152e07473aa08dd99abec7b793fafefab1da2211a6f7e285745687a6c5/aweber_api-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "22257c976e2f1b12e78c19cdc05a972d", "sha256": "3d325bb430db47188f2235b4ca47fff6c9c73d1a1cf58f0c5653cb6144f04829" }, "downloads": -1, "filename": "aweber_api-1.1.0.tar.gz", "has_sig": false, "md5_digest": "22257c976e2f1b12e78c19cdc05a972d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6195, "upload_time": "2011-08-26T20:22:00", "url": "https://files.pythonhosted.org/packages/33/b6/cc11b18d8c2dd5ba58db9bdec8fa49d7094a8691b52e81f9d64e4a97cb69/aweber_api-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "505b83e03be122e1ccb7fbbad801c09c", "sha256": "c06b1144d0952ab60afcaebc8710f98d94637d33c99d513edf1c32f4a42f0060" }, "downloads": -1, "filename": "aweber_api-1.1.1.tar.gz", "has_sig": false, "md5_digest": "505b83e03be122e1ccb7fbbad801c09c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6275, "upload_time": "2011-10-04T15:47:13", "url": "https://files.pythonhosted.org/packages/e6/4c/93c16a5b3108ce8d7ae63c3dc07d6a4ed0d01366da93712c1ebd74ee5bca/aweber_api-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "6b1859a6a8d35febefbf21554a7f4075", "sha256": "d4c28062443b454b4a99418029518da10b857fab7f931040c9c1ab8befc018f4" }, "downloads": -1, "filename": "aweber_api-1.1.2.tar.gz", "has_sig": false, "md5_digest": "6b1859a6a8d35febefbf21554a7f4075", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10460, "upload_time": "2012-05-30T19:42:45", "url": "https://files.pythonhosted.org/packages/61/05/0df498d75b0e7cd8e098ca985ecbacd38961a4f6f0a35718d8dfe42cd10b/aweber_api-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "346a5e88261af290c13567c7c1b95b62", "sha256": "810acacd46fc92233ad4c29f2a0276bb7ffba3db4b84fc662f7b9eb56b52aa4f" }, "downloads": -1, "filename": "aweber_api-1.1.3.tar.gz", "has_sig": false, "md5_digest": "346a5e88261af290c13567c7c1b95b62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10639, "upload_time": "2012-12-10T19:41:49", "url": "https://files.pythonhosted.org/packages/1d/78/35876a8da36469d11cc6d9d4ce78bc347972488199512c39932a723bd1a3/aweber_api-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "8e63364299e84d542ba8ff9f3ca8ffaf", "sha256": "e13499f1d41e4dd187a14e35f2cffff256113854c4031dc971b46e74a036bc83" }, "downloads": -1, "filename": "aweber_api-1.1.4.tar.gz", "has_sig": false, "md5_digest": "8e63364299e84d542ba8ff9f3ca8ffaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11085, "upload_time": "2013-02-14T18:50:04", "url": "https://files.pythonhosted.org/packages/df/34/506bcf552da1b4a21cae5da1d5ee79d0fcb0e6c0584222926906aa355c3a/aweber_api-1.1.4.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "e673a43d1625f7e1495c8aa9c5bffbae", "sha256": "3de0b4bc485c8672f6580225a526781db6db985cd357b2ec160a492ff25c2179" }, "downloads": -1, "filename": "aweber_api-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e673a43d1625f7e1495c8aa9c5bffbae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11719, "upload_time": "2014-11-20T17:55:43", "url": "https://files.pythonhosted.org/packages/1e/4f/0a0ab06897f7bf1703d22171ff04de14872693c07c15b351341df447aa7b/aweber_api-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "eae8e750f76b6355fa9421e343ec80e9", "sha256": "3f0b76939b45ced9e51a3aeec9bd747994821b11f66c85ae1517354ef6f87ed8" }, "downloads": -1, "filename": "aweber_api-1.2.1.tar.gz", "has_sig": false, "md5_digest": "eae8e750f76b6355fa9421e343ec80e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10599, "upload_time": "2014-11-20T21:36:40", "url": "https://files.pythonhosted.org/packages/3c/05/352768c88c565963bb804e6de7abb4de349d63d193cd5161e256698ad7c5/aweber_api-1.2.1.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "b6c04e5a07592d5d02114ff8a014a849", "sha256": "6aceb4b86a0d54d89d7af2f40439ee14e5c2fa09a5b6cdc002498391c7489467" }, "downloads": -1, "filename": "aweber_api-1.4.0.tar.gz", "has_sig": false, "md5_digest": "b6c04e5a07592d5d02114ff8a014a849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10840, "upload_time": "2015-01-22T20:22:30", "url": "https://files.pythonhosted.org/packages/b6/65/5238865e54336a4e5947b13ee534fa3a6f80d7cfbef2ad4c04a0468c0c39/aweber_api-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6c04e5a07592d5d02114ff8a014a849", "sha256": "6aceb4b86a0d54d89d7af2f40439ee14e5c2fa09a5b6cdc002498391c7489467" }, "downloads": -1, "filename": "aweber_api-1.4.0.tar.gz", "has_sig": false, "md5_digest": "b6c04e5a07592d5d02114ff8a014a849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10840, "upload_time": "2015-01-22T20:22:30", "url": "https://files.pythonhosted.org/packages/b6/65/5238865e54336a4e5947b13ee534fa3a6f80d7cfbef2ad4c04a0468c0c39/aweber_api-1.4.0.tar.gz" } ] }