{ "info": { "author": "Vadim Khakulov", "author_email": "vadim.khakulov@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===================\nSendsay API Python\n===================\n\nThe client library to support Sendsay API.\n\nInstallation\n===================\n\n.. code-block:: shell\n\n pip install sendsay-api-python\n\nDependencies \n===================\n\n* requests\n\nIf your Python version older than 2.7.9, the following packages are required to support TLS SNI certificate checking:\n\n* ndg-httpsclient\n* pyopenssl\n* pyasn1\n\n\nUsage\n===================\n\nGetting the instance of the SendsayAPI class\n-------------------\n.. code-block:: python\n\n from sendsay.api import SendsayAPI\n\n api = SendsayAPI(login='', sublogin='', password='')\n\nMaking a simple request\n-------------------\n\n.. code-block:: python\n\n # Calling with parameters as dict\n response = api.request('member.set', { 'email': 'test1k@test.ru', 'addr_type': 'email', 'if_exists': 'overwrite', 'newbie.confirm': 0, 'return_fresh_obj': 1 })\n\n # Or with parameters as kwargs if we don't have '.' in any parameter name\n response = api.request('sys.settings.get', list=['about.name'])\n\n\nMaking an async request\n-------------------\n.. code-block:: python\n\n response = api.request('issue.send', {\n 'sendwhen': 'now',\n 'letter': {\n 'subject': \"Subject\",\n 'from.name': \"Tester\",\n 'from.email': \"test@test.ru\",\n 'message': {\n 'html': \"Sendsay API client test message
Hello!\"\n },\n 'attaches': [\n api.attach_file(\"sample.jpg\")\n ],\n },\n 'relink' : 1,\n 'users.list': \"test1@test.ru\\ntest2@test.ru\",\n 'group' : 'masssending',\n })\n\n # Your tracking function definition if you want to track\n\n def track_process(resp, status_msg):\n print('---- %s' % status_msg) # Print a status message for example\n\n # Waiting for the end of the process\n\n result = api.track_wait(\n response,\n callback=track_process, # your tracking function (if necessary)\n retry_interval=5,\n max_attempts=100\n )", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sendsay-ru/sendsay-api-python", "keywords": null, "license": "Apache", "maintainer": null, "maintainer_email": null, "name": "sendsay-api-python", "package_url": "https://pypi.org/project/sendsay-api-python/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sendsay-api-python/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sendsay-ru/sendsay-api-python" }, "release_url": "https://pypi.org/project/sendsay-api-python/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "The Sendsay API client library.", "version": "0.1.4" }, "last_serial": 3259392, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "8fb0d8e2ed13e5e995647fccc27cf6f1", "sha256": "7f5a946d45cd9baeecf8fd849344d844894d401e6eef25108ff34640cd01cdee" }, "downloads": -1, "filename": "sendsay-api-python-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8fb0d8e2ed13e5e995647fccc27cf6f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15080, "upload_time": "2016-05-04T13:10:48", "url": "https://files.pythonhosted.org/packages/cc/26/ab5af6318f69eeed56f510f18ec19674c4d02c8a05c65610f8d759d6f212/sendsay-api-python-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "e8ffd4a1daceb3f418a9aa5f885dee43", "sha256": "d7bb568a2a27e78b7e3ac9d50eb180f7b97794453c7a4bb93f91ee0ea4703af5" }, "downloads": -1, "filename": "sendsay-api-python-0.1.4.tar.gz", "has_sig": false, "md5_digest": "e8ffd4a1daceb3f418a9aa5f885dee43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16046, "upload_time": "2016-09-29T14:47:30", "url": "https://files.pythonhosted.org/packages/53/46/262babf9ac7ad9eca8ed6fca3481fbe12fa8b93c30c6a3efb688bead43f6/sendsay-api-python-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8ffd4a1daceb3f418a9aa5f885dee43", "sha256": "d7bb568a2a27e78b7e3ac9d50eb180f7b97794453c7a4bb93f91ee0ea4703af5" }, "downloads": -1, "filename": "sendsay-api-python-0.1.4.tar.gz", "has_sig": false, "md5_digest": "e8ffd4a1daceb3f418a9aa5f885dee43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16046, "upload_time": "2016-09-29T14:47:30", "url": "https://files.pythonhosted.org/packages/53/46/262babf9ac7ad9eca8ed6fca3481fbe12fa8b93c30c6a3efb688bead43f6/sendsay-api-python-0.1.4.tar.gz" } ] }