{ "info": { "author": "Miguel Ferrer", "author_email": "ingferrermiguel@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# agilecrm-python\n\nagilecrm is an API wrapper for Agile CRM written in Python\n\n## Installing\n```\npip install agilecrm-python\n```\n\n## Usage\n```\nfrom agilecrm.client import Client\n\nclient = Client('API_KEY', 'EMAIL', 'DOMAIN')\n```\n\nCreate contact\n```\ncontact_data = {\n \"star_value\": \"4\",\n \"lead_score\": \"92\",\n \"tags\": [\n \"Lead\",\n \"Likely Buyer\"\n ],\n \"properties\": [\n {\n \"type\": \"SYSTEM\",\n \"name\": \"first_name\",\n \"value\": \"Los \"\n },\n {\n \"type\": \"SYSTEM\",\n \"name\": \"last_name\",\n \"value\": \"Bruikheilmer\"\n },\n {\n \"type\": \"SYSTEM\",\n \"name\": \"company\",\n \"value\": \"steady.inc\"\n },\n {\n \"type\": \"SYSTEM\",\n \"name\": \"title\",\n \"value\": \"VP Sales\"\n },\n {\n \"type\": \"SYSTEM\",\n \"name\": \"email\",\n \"subtype\": \"work\",\n \"value\": \"akrambakram@yabba.com\"\n },\n {\n \"type\": \"SYSTEM\",\n \"name\": \"address\",\n \"value\": \"{\\\"address\\\":\\\"225 George Street\\\",\\\"city\\\":\\\"NSW\\\",\\\"state\\\":\\\"Sydney\\\",\\\"zip\\\":\\\"2000\\\",\\\"country\\\":\\\"Australia\\\"}\"\n },\n {\n \"type\": \"CUSTOM\",\n \"name\": \"My Custom Field\",\n \"value\": \"Custom value\"\n }\n ]\n}\n\nresponse = client.create_contact(contact_data)\n```\n\nGet contact by id\n```\nresponse = client.get_contact_by_id('5685265389584384')\n```\n\nGet contact by email\n```\nresponse = client.get_contact_by_email('akrambakram@yabba.com')\n```\n\nUpdate contact\n```\nupdate_contact_data = {\n \"id\": \"5685265389584384\",\n \"properties\": [\n {\n \"type\": \"SYSTEM\",\n \"name\": \"last_name\",\n \"value\": \"Chan\"\n },\n {\n \"type\": \"CUSTOM\",\n \"name\": \"My Custom Field\",\n \"value\": \"Custom value chane\"\n }\n ]\n}\nresponse = client.update_contact(update_contact_data)\n```\n\nSearch contacts\n```\nimport json\n\nmyjson = {\n \"rules\": [{\"LHS\": \"created_time\", \"CONDITION\": \"BETWEEN\", \"RHS\": 1510152185.779954, \"RHS_NEW\": 1510238585.779877}],\n \"contact_type\": \"PERSON\"}\n \nresponse = client.search(\n {'page_size': 25,\n 'global_sort_key': '-created_time',\n 'filterJson': json.dumps(myjson)\n})\n```\n\n\n## Requirements\n- requests\n\n## Tests\n```\npython tests/test_client.py\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GearPlug/agilecrm", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "agilecrm-python", "package_url": "https://pypi.org/project/agilecrm-python/", "platform": "", "project_url": "https://pypi.org/project/agilecrm-python/", "project_urls": { "Homepage": "https://github.com/GearPlug/agilecrm" }, "release_url": "https://pypi.org/project/agilecrm-python/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "API wrapper for Agile CRM written in Python", "version": "0.1.1" }, "last_serial": 3617332, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "89647721229191063f310a11d44fcde8", "sha256": "493d986e9a97c6b7de96ad0857e0b3f445e5ffd52ab4983fba08d6d81585e6f3" }, "downloads": -1, "filename": "agilecrm-python-0.1.tar.gz", "has_sig": false, "md5_digest": "89647721229191063f310a11d44fcde8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4772, "upload_time": "2018-02-16T20:49:04", "url": "https://files.pythonhosted.org/packages/13/07/a4fdfd74bd12a8e44803476ffb9e6187df5a001bbcecae9d036f0c850413/agilecrm-python-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b3eb4cec1a1a027c359653d4c249e564", "sha256": "ce76a8dd5ee7d1a6e761cf6e1a3c39c13fb4f1cbf807ffc0e76c4427af4d881a" }, "downloads": -1, "filename": "agilecrm-python-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b3eb4cec1a1a027c359653d4c249e564", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5111, "upload_time": "2018-02-26T13:47:26", "url": "https://files.pythonhosted.org/packages/d5/ad/26430b88f5110a78b3ede454d4cbe520422194e9a83707de2336ffe5feae/agilecrm-python-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b3eb4cec1a1a027c359653d4c249e564", "sha256": "ce76a8dd5ee7d1a6e761cf6e1a3c39c13fb4f1cbf807ffc0e76c4427af4d881a" }, "downloads": -1, "filename": "agilecrm-python-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b3eb4cec1a1a027c359653d4c249e564", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5111, "upload_time": "2018-02-26T13:47:26", "url": "https://files.pythonhosted.org/packages/d5/ad/26430b88f5110a78b3ede454d4cbe520422194e9a83707de2336ffe5feae/agilecrm-python-0.1.1.tar.gz" } ] }