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:
- 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
- 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
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
kommo_python-0.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for kommo_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92253e00357416b1d1668091242abaa414060c6e7cb7db5ba36238cc133eff51 |
|
MD5 | 306093f3d0e7f51e25612098ca333286 |
|
BLAKE2b-256 | 73fdaf52c9bd5dc529a31103cd515677fbd0896ea38824968daa78e3d6d8c1bc |