python_bitrix24
https://github.com/moshkov/python_bitrix24
Зависимости
Python 2.7+, 3.4+
requests
Установка
$ pip install python_bitrix24
Если используется Django, то в настройках проекта можно указать BITRIX24_API_LOGIN, BITRIX24_API_PASSWORD и BITRIX24_API_MAIN_USER_NAME.
Описание
Python Bitrix24 API
Позволяет работать с API Bitrix24. В текущей версии реализовано только добавление лида.
Использование
from python_bitrix24.bitrix24 import Bitrix24Connection
bitrix24Connection = Bitrix24Connection('YOU_BITRIX24_API_LOGIN', 'YOU_BITRIX24_API_PASSWORD', 'YOU_BITRIX24_API_MAIN_USER_NAME')
b24_result = bitrix24Connection.add_lead('My dear Lead, {
'NAME': 'Vasya Pupkin',
'EMAIL_OTHER': 'lead@email.local',
'UF_CRM_123456789': 'additional information',
'UF_CRM_123456788': 'additional information 2',
})
if b24_result.get('error', '') == '201' == 0:
print 'success'
...
Для Django (если в настройках заданы BITRIX24_API_LOGIN, BITRIX24_API_PASSWORD и BITRIX24_API_MAIN_USER_NAME):
from python_bitrix24.python_bitrix24_django import bitrix24Connection
b24_result = bitrix24Connection.add_lead('My dear Lead, {
'NAME': 'Vasya Pupkin',
'EMAIL_OTHER': 'lead@email.local',
'UF_CRM_123456789': 'additional information',
'UF_CRM_123456788': 'additional information 2',
})
if b24_result.get('error', '') == '201' == 0:
print 'success'
...
...
TODO
Проверка отвера API на корректность
Остальной функционал API Bitrix24
Тесты
Документация
Metadata
Release files for python_bitrix24 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_bitrix24-0.1.2.tar.gz | 4.7 kB | Without provenance | Details |
Release files / python_bitrix24-0.1.2.tar.gz
| Download URL | python_bitrix24-0.1.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d06c7924ee99c0c987883cc6fd0375233f46f742670ee49be9b43a2efa0111c
|
|
BLAKE2b-256 checksum How to use checksums |
d3d55962749b9e509893a796314b6f50409b40c5cbe791f62b16ba6d2233c273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python_bitrix24 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.