{ "info": { "author": "Sift Science", "author_email": "support@siftscience.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "============================\nSift Science Partnership API |TravisCI|_\n============================\n\n.. |TravisCI| image:: https://travis-ci.org/SiftScience/sift-partner-python.svg?branch=master\n.. _TravisCI: https://travis-ci.org/SiftScience/sift-partner-python\n\nBindings for Sift Science's `Partnerships API `_.\n\nInstallation\n============\n\nSet up a virtual environment with virtualenv (otherwise you will need to make the pip calls as sudo):\n::\n\n virtualenv venv\n source venv/bin/activate\n\nGet the latest released package from pip:\n\nPython 2:\n::\n\n pip install siftpartner\n\nPython 3:\n::\n\n pip3 install siftpartner\n\nor install newest source directly from GitHub:\n\nPython 2:\n::\n\n pip install git+https://github.com/SiftScience/sift-partner-python\n\nPython 3:\n::\n\n pip3 install git+https://github.com/SiftScience/sift-partner-python\n\nUsage\n=====\n\nHere's an example:\n\n::\n\n import siftpartner\n\n partner_client = siftpartner.Client(api_key = '',\n partner_id = '')\n\n # create a new account for a given merchant\n response = partner_client.new_account(\n \"merchantsite.com\", # the url for the merchant's site\n \"shopowner@merchantsite.com\", # an email belonging to the merchant\n \"johndoe@merchantsite.com\", # an email used to log in to Sift\n \"s0m3l0ngp455w0rd\" # password associated with that log in\n )\n\n\n response.is_ok() # returns True of False\n\n print response # prints entire response body and http status code\n\n\n # Get a list of all merchant accounts created by you\n response = partner_client.get_accounts()\n\n response.is_ok() # returns True of False\n\n print response # prints entire response body and http status code\n\n # configure notification endpoint and threshold for you merchants\n cfg = {\n # set the URL for notifications to arrive at. The %s is replaced by the merchant's customer ID\n \"http_notification_url\": \"http://api.partner.com/notify?id=%s\",\n # Set the threshold to send notifications over. This is the Sift Score/100\n \"http_notification_threshold\": 0.60 \n }\n response = partner_client.update_notification_config(cfg)\n\n response.is_ok() # returns True of False\n\n print response # prints entire response body and http status code\n\nTesting\n=======\n\nBefore submitting a change, make sure the following commands run without errors from the root dir of the repository:\n\n::\n\n PYTHONPATH=. python tests/client_test.py\n PYTHONPATH=. python3 tests/client_test.py\n\n\n0.0.3 (2016-06-30)\n==================\n* Added handling of next_ref for get_accounts\n\n0.0.2 (2014-11-06)\n==================\n* Python REST library for Partnerships API", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://siftscience.com", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "SiftPartner", "package_url": "https://pypi.org/project/SiftPartner/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SiftPartner/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://siftscience.com" }, "release_url": "https://pypi.org/project/SiftPartner/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Python bindings for Sift Science's Partnerships API", "version": "0.0.3" }, "last_serial": 2197000, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "5a90f05a569999b136cbdda1c572f9b0", "sha256": "a1b0e35bf83dc4b1b331ac02f24e3ea737a28b195853fd441efffa20ae067ab9" }, "downloads": -1, "filename": "SiftPartner-0.0.2.tar.gz", "has_sig": false, "md5_digest": "5a90f05a569999b136cbdda1c572f9b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4982, "upload_time": "2014-11-07T22:13:20", "url": "https://files.pythonhosted.org/packages/b0/bc/c8daadabd4484101aa1a39ecc168d139d0c763f47554ba74ece4da54e3b6/SiftPartner-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e170c22e2cdf5960f488b91f4e1e77df", "sha256": "053f27934309ad8d694d18390aeeae425336980ae210e32957c4386e5727b85f" }, "downloads": -1, "filename": "SiftPartner-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e170c22e2cdf5960f488b91f4e1e77df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5707, "upload_time": "2016-06-30T23:21:39", "url": "https://files.pythonhosted.org/packages/15/ad/f45ac46e6142850f6cdd8fdd09b2478b4afd1f4095387f8e0c8207cf303e/SiftPartner-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e170c22e2cdf5960f488b91f4e1e77df", "sha256": "053f27934309ad8d694d18390aeeae425336980ae210e32957c4386e5727b85f" }, "downloads": -1, "filename": "SiftPartner-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e170c22e2cdf5960f488b91f4e1e77df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5707, "upload_time": "2016-06-30T23:21:39", "url": "https://files.pythonhosted.org/packages/15/ad/f45ac46e6142850f6cdd8fdd09b2478b4afd1f4095387f8e0c8207cf303e/SiftPartner-0.0.3.tar.gz" } ] }