Skip to main content

API wrapper for Kommo CRM written in Python

Project description

kommo-python

kommo-python is an API wrapper for Kommo CRM, written in Python.
This library uses Oauth2 for authentication.

Installing

pip install kommo-python

Usage

from kommo.client import Client
client = Client(client_id, client_secret, code, domain, redirect_uri)

To obtain and set an access token, follow this instructions:

  1. Get access token
body = {
            "client_id": self.CLIENT_ID,
            "client_secret": self.CLIENT_SECRET,
            "grant_type": "authorization_code",
            "code": self.CODE,
            "redirect_uri": self.REDIRECT_URI
        }
access_token = client.get_access_token(body)
# This call generates the oauth validation and get the access token and refresh token
  1. Refresh access token
refresh_token = client.refresh_access_token(refresh_token)
# "refresh_token" is the token refresh in response after login with oauth with the above url.

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

kommo_python-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

kommo_python-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file kommo_python-0.1.0.tar.gz.

File metadata

  • Download URL: kommo_python-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for kommo_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d81878d313f83578b663b36ea15461994818de84d32e8dfa52ff77f5df9af9e
MD5 0d53913950a3d9d9b584f6eaf66dd120
BLAKE2b-256 f46fccd6bb12c75b69f483b21b52c8cb65bf7c6e75eba08986c5030305c6af64

See more details on using hashes here.

File details

Details for the file kommo_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kommo_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92253e00357416b1d1668091242abaa414060c6e7cb7db5ba36238cc133eff51
MD5 306093f3d0e7f51e25612098ca333286
BLAKE2b-256 73fdaf52c9bd5dc529a31103cd515677fbd0896ea38824968daa78e3d6d8c1bc

See more details on using hashes here.

Supported by

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