Skip to main content

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


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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitrix24-rest-motexc-1.1.3a1.tar.gz
  • Upload date:
  • Size: 6.0 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.3a1.tar.gz
Algorithm Hash digest
SHA256 bfbd88198ce39f13b3165dc9e8e0cdd2236cf2469ccc8c5b0ff3104cc33b6753
MD5 d7e42bb59846a4572e6d5d3890c2634a
BLAKE2b-256 238660259dec9d91bff77b279883fc1f85c9b24556120ee757d9b6223a3ac468

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bitrix24_rest_motexc-1.1.3a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d71061b8b28d906ebd74a5da1d97d27fc046d5b11ec5d5dd4a5672dbb5d737d5
MD5 99c9ad56bc98782f57b7d9584071ddcb
BLAKE2b-256 99904d71c17c2e4884878abeed3600f7622d38d3800e4f5f9241073214b08264

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