I can't use the Python library that works with the ok.ru API https://github.com/alternativshik/python-odnoklassniki
The manual on the git page states:
import odnoklassniki ok = odnoklassniki.Odnoklassniki(client_key, client_secret, access_token) print ok.group.getInfo('uids'='your_group_id', 'fields'='members_count') By analogy, I perform with my data, with the only difference that I execute on 3 versions of python, I modify print function. I get the error:
Traceback (most recent call last): File "OK API.py", line 31, in <module> x = ok.friends.get(fid='571031948142') File "/usr/local/lib/python3.5/dist-packages/odnoklassniki/api.py", line 100, in __call__ return self._get(self._method, **kwargs) File "/usr/local/lib/python3.5/dist-packages/odnoklassniki/api.py", line 67, in _get status, response = self._request(method, **kwargs) File "/usr/local/lib/python3.5/dist-packages/odnoklassniki/api.py", line 106, in _request for key, value in kwargs.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems'