Skip to main content

A fork of bitrix24-rest package, abandoned by it's 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


Download files

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

Source Distribution

bitrix24-rest-motexc-1.1.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitrix24_rest_motexc-1.1.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file bitrix24-rest-motexc-1.1.5.tar.gz.

File metadata

  • Download URL: bitrix24-rest-motexc-1.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for bitrix24-rest-motexc-1.1.5.tar.gz
Algorithm Hash digest
SHA256 b21bbcdb0fcd747d714fe5400553cca356d30b07bcb5caa6e08bbf171fda8049
MD5 88649e4439c02e5e9b25e784cc873399
BLAKE2b-256 7eb0d4026e52a4b047e19bfe25afc49f3d9147ba60b71d95c8074c9534e32a4a

See more details on using hashes here.

File details

Details for the file bitrix24_rest_motexc-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for bitrix24_rest_motexc-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3863b06de39e730258d588c41bb6b2d2d4c50b153fab0dc112d477fe561e598e
MD5 e4ee41e6a646f7180e0fce05acec8c6f
BLAKE2b-256 9768eaaf5a105e0d7e5cc57b5fdb2edd236f4c89f9591f590a395214d7f59530

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