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

Python 3.5.2 - doesn't work #1

Description

@vabue

Hi, great initiative!

But it seems not working on fresh python:

#pip3 list |grep bitrix24
bitrix24-python-sdk (1.0.1)
#python3
Python 3.5.2 (default, Oct  1 2016, 13:12:23)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from bitrix24 import Bitrix24
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Bitrix24'
>>>

also if you'll try

python 3.5.2 (default, Oct  1 2016, 13:12:23)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from bitrix24 import bitrix24
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/site-packages/bitrix24/bitrix24.py", line 9, in <module>
    from multidimensional_urlencode import urlencode
  File "/usr/local/lib/python3.5/site-packages/multidimensional_urlencode/__init__.py", line 1, in <module>
    from urlencoder import urlencode  # noqa
ImportError: No module named 'urlencoder'

multidimensional_urlencode is not yet python3 compatible. Is it necessary to form url parameters string? Because I see that B24 can get parameters inside POST body:

POST /rest/user.get.json HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 55
Content-Type: application/json
Host: ktc.bitrix24.ua
User-Agent: HTTPie/0.9.6

{
    "ID": "14",
    "auth": "myauth"
}

HTTP/1.1 200 OK
{
    "result": [
        {
            "ACTIVE": true,
            "EMAIL": "nospam@ktc.ua",
            "ID": "14",
            "LAST_NAME": "Будкин",
            "NAME": "Валентин",
        }
    ],
    "total": 1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions