Integrating with BaseCRM (Django)
Connect your Django project with the new BaseCRM API with our latest project.
Base CRM is a Customer Relationship Management system that integrates with Google Apps. They recently released the second version of their API and we've started integrating our codebase with it, in order to automate the creation of Contacts and Deals.
We created a PyPI package, django_basecrm that anyone can use to integrate their Django projects with Base. You will need to add django_basecrm
to your INSTALLED_APPS
, and add the following to your settings.py
:
BASECRM_API_KEY='XXXkeyXXX'
BASECRM_API_URL='https://api.getbase.com/v2/'
It's mainly a lightweight wrapper around the requests library, that adds the required headers and generates API endpoints, but it also provides Serializers (inspired by the Django REST Framework), that provide a powerful and simple way to maintain a mapping between your ORM objects and the Base CRM objects.
It also provides some helper methods to strip out metadata, retrieve particular types of data, etc.
An example call to retrieve all notes related to a particular contact would be as simple as:
import django_basecrm
# 545 is the base_id for your contact
django_basecrm.get_notes('contact', 545)
# [{'id': 655423, 'content': 'A note against the contact', ...}, ...]
We run all our integration methods (mainly one-way updates to Base) from RQ; this app helps make atomic, pickled calls easy.
It is meant as a lightweight, easy-to-use drop-in connector for your Django project, but it's also not complete - please feel free to fork the GitHub repo and contribute to the project.
Django developer