========================
[](http://badge.fury.io/py/django-odnoklassniki-api) [](https://travis-ci.org/ramusus/django-odnoklassniki-api) [](https://coveralls.io/r/ramusus/django-odnoklassniki-api) [](https://bitdeli.com/free "Bitdeli Badge")
Приложение позволяет взаимодействовать с объектами Одноклассники API используя стандартные модели Django
Установка
---------
pip install django-odnoklassniki-api
В `settings.py` необходимо добавить:
INSTALLED_APPS = (
...
'oauth_tokens',
'taggit',
'odnoklassniki_api',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_PUBLIC = '' # application public key
OAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_SECRET = '' # application secret key
OAUTH_TOKENS_ODNOKLASSNIKI_SCOPE = [''] # application scopes
OAUTH_TOKENS_ODNOKLASSNIKI_USERNAME = '' # user login
OAUTH_TOKENS_ODNOKLASSNIKI_PASSWORD = '' # user password
Покрытие методов API
--------------------
* [resolveScreenName](http://vk.com/dev/resolveScreenName) – определяет тип объекта (пользователь, группа, приложение) и его идентификатор по короткому имени screen_name;
Примеры использования
---------------------
### Запрос API
>>> from odnoklassniki_api.api import api_call
>>> api_call('url.getInfo', url='http://www.odnoklassniki.ru/apiok')
{u'objectId': 53038939046008L, u'type': u'GROUP'}
Metadata
Release files for django-odnoklassniki-api 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-odnoklassniki-api-0.2.6.tar.gz | 29.2 kB | Without provenance | Details for django-odnoklassniki-api-0.2.6.tar.gz |
Release files / django-odnoklassniki-api-0.2.6.tar.gz
| Download URL | django-odnoklassniki-api-0.2.6.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ac7d24647f15a171eca04863452cff217697eeb14768913a8f63163f42900f9
|
|
BLAKE2b-256 checksum How to use checksums |
e0d59b6d6ca96d1eb3d9e7c3035f50e060b82b04bf9b4efa6f00e726e7c7e704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-odnoklassniki-api 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.