Zoho CRM connector
Project description
Zoho CRM Connector
Zoho provides a Python SDK, but I found it a bit hard to use and it seems a bit complicated. For instance, there is a dependency on mysql. This module is a little more pragmatic (it uses retries) and it returns pages of results with yield.
This is basically what I consider a pragmatic library for my own purposes, so it has specific functions for doing things like creating quotes. This code is based on code I have in production, where it is used to synchronise accounts, contacts and quotes with an ERP.
Install
pip install zoho_crm_connector
Authenticating with Zoho CRM
You need three things:
refresh token
client ID
client secret
These instructions are from the documentation from Zoho for the Python SDK
Step 1: Registering a Zoho Client
Since Zoho CRM APIs are authenticated with OAuth2 standards, you should register your client app with Zoho. To register your app:
Visit this page https://accounts.zoho.com/developerconsole. Click on “Add Client ID”. Enter Client Name, Client Domain and Redirect URI. Select the Client Type as “Web based”. Click “Create” Your Client app would have been created and displayed by now. The newly registered app’s Client ID and Client Secret can be found by clicking Options → Edit. (Options is the three dot icon at the right corner).
Usage
See test_zoho_crm_connector.py in tests for some examples.
Testing
pytest needs to be installed.
Warning: testing writes an access token to a temporary directory provided by pytest, on linux this is a subdirectory of /tmp. testing needs a connection to zoho. Set three environment variables:
'refresh_token': os.getenv('ZOHOCRM_REFRESH_TOKEN'), 'client_id': os.getenv('ZOHOCRM_CLIENT_ID'), 'client_secret': os.getenv('ZOHOCRM_CLIENT_SECRET')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zoho_crm_connector-0.1.2.tar.gz
.
File metadata
- Download URL: zoho_crm_connector-0.1.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebea6c08a1c23058a1389fea64b5b6962f3b735b428432737d556b279afa9a0e |
|
MD5 | 201fe33aac41966e9823d448a89763cb |
|
BLAKE2b-256 | 60b6eeb5992742ecfbfb3e592aaf390a53c16b6dcd174d913a97fc8046c77837 |
File details
Details for the file zoho_crm_connector-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: zoho_crm_connector-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7be54c1801fd4936d39657bb705581ccdb213cd5eb478784da1647692baf509c |
|
MD5 | ffbd0dde9bdec3cdf8c977d472a885cc |
|
BLAKE2b-256 | c0bd83a1cc4bfa7dfde1d28094b9356231d29590a1c2cb337b263028dcbc5e63 |