Skip to main content

A Zoho CRM API

Project description

Zoho CRM API

This API is for people who are having trouble with the official Zoho API.

  • Supports Zoho API v2

For full documentation visit zoho-crm-api.readthedocs.io.

Quickstart

Install:

$ pip install zohocrmapi

Get a Client ID, Client Secret, and Grant Token from Zoho, then create a ZohoCRMRestClient object and generate an access token:

from zohocrm import ZohoCRMRestClient

client_id = '<paste your Zoho client id>'
client_secret = '<paste your Zoho client secret>'
redirect_uri = '<paste your Redirect URL>'
grant_token = '<paste your newly created token>'
zoho_client = ZohoCRMRestClient(client_id, client_secret, redirect_uri)

zoho_client.generate_access_token(grant_token)

Download a Record from the API, for example a Contact:

from zohocrm import ZohoCRMContact

contact_id = 1234023423424
contact = ZohoCRMContact.fetch(
    zoho_client,
    contact_id
)

Create a new record:

contact = ZohoCRMContact(zoho_client)
contact.Last_Name = "John"

Update or save a Record:

# no id? insert
contact.save()  # or contact.insert()

# id = <int>? update
contact.id = 12232423423
contact.save()  # or contact.update()

Delete a Record:

# delete loaded record
contact.delete()

# delete non-loaded record from ID
ZohoCRMContact.delete_id(zoho_client, contact_id)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zohocrmapi, version 0.0.11
Filename, size File type Python version Upload date Hashes
Filename, size zohocrmapi-0.0.11-py3-none-any.whl (16.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size zohocrmapi-0.0.11.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page