nodejs
- 84
- JavaScript
- 7 y ago
Python API for Agile CRM
Repo agilecrm/python-api, read from GitHub 1 min ago. agilecrm has not joined Take My Repo.
agilecrm/python-api is a public repo on GitHub by agilecrm. Python API for Agile CRM. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in Python, has 15 stars and last changed on 2017-05-01. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-19.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Agile CRM is a new breed CRM software with sales and marketing automation.
AgileCRM.py file
Request library python
Setting domain name and Rest API key
In the above image, api key is present at the "Api & Analytics" tab at https://mycompany.agilecrm.com/#account-prefs.
So you have to update your AgileCRM.py
import requests import json from urlparse import urljoin APIKEY = "************" # Your agile crm Rest API key EMAIL = "sample@agilecrmcom" # Your agile crm email DOMAIN = "sample" # Your domain #-----------------------------------Rest Code--------------------------------
contact_data = { "star_value": "4", "lead_score": "92", "tags": [ "Lead", "Likely Buyer" ], "properties": [ { "type": "SYSTEM", "name": "first_name", "value": "Los " }, { "type": "SYSTEM", "name": "last_name", "value": "Bruikheilmer" }, { "type": "SYSTEM", "name": "company", "value": "steady.inc" }, { "type": "SYSTEM", "name": "title", "value": "VP Sales" }, { "type": "SYSTEM", "name": "email", "subtype": "work", "value": "akrambakram@yabba.com" }, { "type": "SYSTEM", "name": "address", "value": "{\"address\":\"225 George Street\",\"city\":\"NSW\",\"state\":\"Sydney\",\"zip\":\"2000\",\"country\":\"Australia\"}" }, { "type": "CUSTOM", "name": "My Custom Field", "value": "Custom value" } ] } print agileCRM("contacts","POST",contact_data,"application/json")
// Get contact by ID print agileCRM("contacts/5707397775491072","GET",None,"application/json")
// Get contact by Email print agileCRM("contacts/search/email/sample@agilecrm.zendesk.com","GET",None,"application/json")
// Get contact by Email email_data = "email_ids=[%s]" % "poonam.baranwal@invenio-solutions.com" print agileCRM("contacts/search/email","POSTFORM",email_data,"application/x-www-form-urlencoded")
// Delete a contact print agileCRM("contacts/5716466867372032","DELETE",None,"application/json")
update_contact_data = { "id": "5707397775491072", "properties": [ { "type": "SYSTEM", "name": "last_name", "value": "Chan" }, { "type": "CUSTOM", "name": "My Custom Field", "value": "Custom value chane" } ] } print agileCRM("contacts/edit-properties","PUT",update_contact_data,"application/json")
update_lead_score = { "id": "5708993221623808", "lead_score": 20 } print agileCRM("contacts/edit/lead-score","PUT",update_lead_score,"application/json")
update_star_value = { "id": "5708993221623808", "star_value": 2 } print agileCRM("contacts/edit/add-star","PUT",update_star_value,"application/json")
update_tag_value = { "id": "5708993221623808", "tags": [ "test1", "test2" ] } print agileCRM("contacts/edit/tags","PUT",update_tag_value,"application/json")
delete_tag_value = { "id": "5708993221623808", "tags": [ "test1", "test2" ] } print agileCRM("contacts/delete/tags","PUT",delete_tag_value,"application/json")
string result = agileCRM("search?q=ghanshyam raut&page_size=10&type='PERSON'", "GET", null,"application/json"); print agileCRM("search?q=ghanshyam raut&page_size=10&type='PERSON'","GET",None,"application/json")
Work in progress
Work in progress
Work in progress
company_data = { "type": "COMPANY", "star_value": 4, "lead_score": 120, "tags": [ "Permanent", "USA", "Hongkong", "Japan" ], "properties": [ { "name": "Company Type", "type": "CUSTOM", "value": "MNC Inc" }, { "type": "SYSTEM", "name": "name", "value": "Spicejet" }, { "type": "SYSTEM", "name": "url", "value": "http://www.spicejet.com/" }, { "name": "email", "value": "care@spicejet.com ", "subtype": "" }, { "name": "phone", "value": "45500000", "subtype": "" }, { "name": "website", "value": "http://www.linkedin.com/company/agile-crm", "subtype": "LINKEDIN" }, { "name": "address", "value": "{\"address\":\"MS 35, 440 N Wolfe Road\",\"city\":\"Sunnyvale\",\"state\":\"CA\",\"zip\":\"94085\",\"country\":\"US\"}", "subtype": "office" } ] } print agileCRM("contacts","POST",company_data,"application/json")
update_company_data = { "id": 5661396394049536, "properties": [ { "type": "SYSTEM", "name": "name", "value": "SPICE JET" }, { "type": "SYSTEM", "name": "url", "value": "http://www.spicejet.com/" }, { "name": "phone", "value": "45500000", "subtype": "" } ] } print agileCRM("contacts/edit-properties","PUT",update_company_data,"application/json")
print agileCRM("contacts/5661396394049536","GET",None,"application/json")
print agileCRM("contacts/5661396394049536","DELETE",None,"application/json")
deal_data = { "name": "Deal-Tomato", "expected_value": "500", "probability": "75", "close_date": 1455042600, "milestone": "Proposal", "contact_ids": [ "5661679325020160" ], "custom_data": [ { "name": "Group Size", "value": "10" } ] } print agileCRM("opportunity","POST",deal_data,"application/json")
update_data = { "id": "5647457211908096", "expected_value": "1000", "probability": "20", "milestone": "Proposal", "contact_ids": [ "5661679325020160", "5684821548335104" ], "custom_data": [ { "name": "dealTester", "value": "hello hello2" } ] } print agileCRM("opportunity/partial-update","PUT",update_data,"application/json")
Work in progress
print agileCRM("opportunity?page_size=10&cursor=Cj8SOWoRc35hZ2lsZS1jcm0tY2xvdWRyGAsSC09wcG9ydHVuaXR5GICAgMCV5oEJDKIBCWdoYW5zaHlhbRgAIAA","GET",None,"application/json")
print agileCRM("opportunity/5733975435771904","GET",None,"application/json")
print agileCRM("opportunity/5733975435771904","DELETE",None,"application/json")
note_data = { "subject": " Note subject", "description": "Note description", "contact_ids": [ "5707143030243328", "5721389839417344" ] } print agileCRM("notes","POST",note_data,"application/json")
WIPprint agileCRM("contacts/5688267051630592/notes","GET",None,"application/json")
print agileCRM("contacts/5688267051630592/notes/5688267051630600","DELETE",None,"application/json")
note_deal_data = { "subject": "Deal From Albany", "description": "This deal came directly from customer. No advertisement and hence very important for us.", "deal_ids": [ "5178487182721024" ] } print agileCRM("opportunity/deals/notes","POST",note_deal_data,"application/json")
update_note_deal_data = { "id": "5714548224950272", "subject": "Deal From Albany edit", "description": "This deal came directly from customer. No advertisement and hence very important for us.", "deal_ids": [ "5088304026353664" ] } print agileCRM("opportunity/deals/notes","PUT",update_note_deal_data,"application/json")
print agileCRM("opportunity/5728337217454080/notes","GET",None,"application/json")
agilecrm/python-api is a public repo on GitHub by agilecrm. Python API for Agile CRM.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2017-05-01. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
