A fork of bitrix24-rest package, abandoned by his author Akop Kesheshyan
Project description
Bitrix24 REST API for Python
Easy way to communicate with bitrix24 portal over REST without OAuth 2.0
Description
Bitrix24 REST is a simple API wrapper for working with Bitrix24 REST API over webhooks.
Features
- Works both with cloud and on-premises versions of bitrix24, much more
- Super easy for setting up. No OAuth implemetation required
- Compatible with latests Bitrix24 REST API
Requirements
- Python 2.6+ or 3.2+
- requests
Installation
pip install bitrix24-rest
Quickstart
from bitrix24 import *
bx24 = Bitrix24('https://example.bitrix24.com/rest/1/33olqeits4avuyqu')
print(bx24.callMethod('crm.product.list'))
Advanced usage
You can define filters and additional parameters in any order:
bx24.callMethod('crm.deal.list',
order={'STAGE_ID': 'ASC'},
filter={'>PROBABILITY': 50},
select=['ID', 'TITLE', 'STAGE_ID', 'PROBABILITY'])
Catch the server error with exception:
try:
bx24.callMethod('tasks.task.add', fields={'TITLE': 'task for test', 'RESPONSIBLE_ID': 1})
except BitrixError as message:
print(message)
Notes
List methods return all available items at once. For large collections of data use limits.
Tests
python -m unittest discover
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
Close
Hashes for bitrix24-rest-motexc-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ef98f4a48cb3d0aec6293e9202de3ed0c871727812a8d86b573a32aca9ad42 |
|
MD5 | 2e69235c6da7f8b39cd27ab661a1099b |
|
BLAKE2b-256 | 2979f34893cd26bd74ceee9e1780a420c94c6b5fae1c8f683e1aba277bd53f86 |
Close
Hashes for bitrix24_rest_motexc-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db462ef2168230c70a1c536bc652fc266bc97ed892c85999640f6467de64238 |
|
MD5 | 9e27ac58b4884430211caac7b3bca20a |
|
BLAKE2b-256 | 939495f1dc4702d82ff43d642468b2c8b1d69ac783b58f06659e19e527db8f7b |