Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

a simple API wrapper for working with Bitrix24 REST API

License

Notifications You must be signed in to change notification settings

gebvlad/bitrix24-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitrix24-python-sdk

https://img.shields.io/pypi/dm/bitrix24-python-sdk.svg?maxAge=2592000

Description

Bitrix24 REST API wrapper

bitrix24-python-sdk is a simple API wrapper for working with Bitrix24 REST API

Requirements

  • Python 2.6+ or 3.2+
  • requests
  • multidimensional_urlencode

Installation

pip install bitrix24-python-sdk

Quickstart

from bitrix24 import Bitrix24

bx24 = Bitrix24('YOUR_THIRD_LEVEL_DOMAIN', 'YOUR_AUTH_TOKEN')

print(bx24.call('app.info'))

Notes

For some functions the order of parameters is important. For example, methods from scope "task":

bx24.call(
    'task.item.list',
    {'ORDER': {'GROUP_ID': 'asc'}},
    {'FILTER': {'GROUP_ID': 1,'REAL_STATUS': {0: STATE_NEW}}},
    {'PARAMS': {'NAV_PARAMS': {'nPageSize': 50, 'iNumPage': 2}}}
)

Tests

  1. Put your access data at tests/testBitrix24.py
  2. Run tests
python -m unittest discover

Author

Vladislav Sikach - github@sijmusic.info See also the list of contributors which participated in this project

Need custom Bitrix24 application?

email: github@sijmusic.info

TODO

  1. Documentation

About

a simple API wrapper for working with Bitrix24 REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages