Skip to main content

Implements OAuth2.0 flow to use ZOHO API.

Project description

Zoho API - OAuth 2.0

Uses OAuth 2.0 for generating access_tokens for using Zoho APIs.

Generate required credentials

  • CLIENT_ID
  • CLIENT_SECRET

Generate the two values from https://api-console.zoho.com/. Add a self client, and copy the CLIENT_ID and CLIENT_SECRET as seen in the example below.

  • redirect_uri

Add the redirect uri of your instance.

  • scope

You can find the list of scopes in the api documentation of the products you wish to use the API for.

API Documentation

The access tokens have only been tested with Manage Engine Service Desk instance in a demo environment, although it should work with most Zoho products.

Learn more about the APIs from the link below.

Example Usage

from zoho_oauth2 import ZohoAPITokens

if __name__ == '__main__':
    test = ZohoAPITokens(
        client_id=CLIENT_ID,
        client_secret=CLIENT_SECRET,
        redirect_uri=REDIRECT_URI,
        scope=SCOPES(as string, each scope separated by comma)
    )
    print(test.auth_token())

Project details


Download files

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

Source Distribution

zoho_oauth2-1.0.6.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file zoho_oauth2-1.0.6.tar.gz.

File metadata

  • Download URL: zoho_oauth2-1.0.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6rc1

File hashes

Hashes for zoho_oauth2-1.0.6.tar.gz
Algorithm Hash digest
SHA256 011468559b9e56d18a5cdf8161181afea1a3d9f8d6c952419e66583939e45d7e
MD5 b8cc129d1e89f7fc690137d7851fb165
BLAKE2b-256 49309df86234a2f7aa5b15b4c4a83296abf01d1ba3cee5c13761a9b3f23eb1ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page