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.3a6.tar.gz (6.1 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.3a6-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file bitrix24-rest-motexc-1.1.3a6.tar.gz.

File metadata

  • Download URL: bitrix24-rest-motexc-1.1.3a6.tar.gz
  • Upload date:
  • Size: 6.1 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.3a6.tar.gz
Algorithm Hash digest
SHA256 76409c595c35aa59a58b4295b77f5d27cac86af9516fa71c0c75b0ab9d83731b
MD5 4eeb8554950b9454c674194131c7e20f
BLAKE2b-256 f821220e0bf50b5c7f37d126ce6e1c1c9917930fd0fee156d66fac539e9cfbb0

See more details on using hashes here.

File details

Details for the file bitrix24_rest_motexc-1.1.3a6-py3-none-any.whl.

File metadata

File hashes

Hashes for bitrix24_rest_motexc-1.1.3a6-py3-none-any.whl
Algorithm Hash digest
SHA256 e73a71281802fe4d218dbe14a522514e5403b1f536174edbcbe1b59a23853e6d
MD5 96a48bee35cd904bfcbc36ce5c1a1efe
BLAKE2b-256 f52ab5bb60b9ce99a86f20274da4ac4d752eb6a1668594ea1bc9498e30e9e6a2

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