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.2.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.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitrix24-rest-motexc-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fed3301c71f494e0566e7d86ce71c4bc7aba60da00028edaa2e83516b4b91de6
MD5 693b477c57a7ca3504e48794cd938004
BLAKE2b-256 414a4b0d5e818151fd99faa9645fbe714d2e982ffabd1de269c734f035f922a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bitrix24_rest_motexc-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b823a96c062b22d257a81b185880237200141d08ad783219180b4b8b3bfeda1
MD5 41cadc188cdf1b4685e65ea92dcf44e4
BLAKE2b-256 1b3a36ee4abcead9d7284ef5cf5bac6bc856d9e044ae44958f00c19ab51a2000

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