===========================
[](http://badge.fury.io/py/django-odnoklassniki-groups) [](https://travis-ci.org/ramusus/django-odnoklassniki-groups) [](https://coveralls.io/r/ramusus/django-odnoklassniki-groups)
Приложение позволяет взаимодействовать с группами соц. сети Одноклассники, их статистикой и пользователями групп через OK API используя стандартные модели Django
Установка
---------
pip install django-odnoklassniki-groups
В `settings.py` необходимо добавить:
INSTALLED_APPS = (
...
'oauth_tokens',
'taggit',
'odnoklassniki_api',
'odnoklassniki_groups',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_ID = 12345678 # application id
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
--------------------
* [group.getInfo](http://apiok.ru/wiki/display/api/group.getInfo) – получение информации о группах;
* [group.getMembers](http://apiok.ru/wiki/display/api/group.getMembers) – получение списка пользователей группы;
Примеры использования
---------------------
### Получение группы
>>> from odnoklassniki_groups.models import Group
>>> Group.remote.fetch(ids=[47241470410797])
[<Group: Кока-Кола>]
Metadata
Release files for django-odnoklassniki-groups 0.1.4
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-groups-0.1.4.tar.gz | 24.7 kB | Without provenance | Details for django-odnoklassniki-groups-0.1.4.tar.gz |
Release files / django-odnoklassniki-groups-0.1.4.tar.gz
| Download URL | django-odnoklassniki-groups-0.1.4.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ca745f2f19885b21ce416eb9f68f232f1be29a9b5260e765cd8ca57dcd3be27
|
|
BLAKE2b-256 checksum How to use checksums |
913b58c2fa92d9cce40edf0ab9be0ea41f587ad6786899b2686cdb654dc94c46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-odnoklassniki-groups 0.1.4
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.