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

Uploaded Python 3

File details

Details for the file bitrix24-rest-motexc-1.1.4b1.tar.gz.

File metadata

  • Download URL: bitrix24-rest-motexc-1.1.4b1.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.4b1.tar.gz
Algorithm Hash digest
SHA256 c52be7482b0fd6b43c6e4711cbf60425a29af523fb68df61b5924d158461e6b5
MD5 0eade86afa6a2c77d80610eda388578d
BLAKE2b-256 85e47380955c8fda0e47040db7ab6adc71911f9fcdf33dbc921dbadd6735e52e

See more details on using hashes here.

File details

Details for the file bitrix24_rest_motexc-1.1.4b1-py3-none-any.whl.

File metadata

File hashes

Hashes for bitrix24_rest_motexc-1.1.4b1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ad25e2817e8b1b3fda0ce87b89f51d69040b38902fe01b47eb4f342d792c25
MD5 4549c9d13fcab2a8f2745c5683457533
BLAKE2b-256 1f0b0654122752e6586c2bba71340f12ce64b8996af14e88f8847161d7c2742c

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