Skip to main content

Django implementation for odnoklassniki API Users

Project description

Django Odnoklassniki Users
==========================

[![PyPI version](https://badge.fury.io/py/django-odnoklassniki-users.png)](http://badge.fury.io/py/django-odnoklassniki-users) [![Build Status](https://travis-ci.org/ramusus/django-odnoklassniki-users.png?branch=master)](https://travis-ci.org/ramusus/django-odnoklassniki-users) [![Coverage Status](https://coveralls.io/repos/ramusus/django-odnoklassniki-users/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-odnoklassniki-users)

Приложение позволяет взаимодействовать с профилями пользователей Вконтакте через Вконтакте API используя стандартные модели Django

Установка
---------

pip install django-odnoklassniki-users

В `settings.py` необходимо добавить:

INSTALLED_APPS = (
...
'oauth_tokens',
'taggit',
'odnoklassniki_api',
'odnoklassniki_users',
)

# 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
--------------------

* [users.getInfo](http://apiok.ru/wiki/display/api/users.getInfo) – возвращает большой массив информации, связанной с пользователем, для каждого переданного идентификатора пользователя;

Примеры использования
---------------------

### Получение пользователей по ID

>>> from odnoklassniki_users.models import User
>>> User.remote.fetch(ids=[561348705024,578592731938])
[<User: Евгений Дуров>,
<User: Михаил Коммуникатов>]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-odnoklassniki-users-0.0.1.tar.gz (14.2 kB view details)

Uploaded Source

File details

Details for the file django-odnoklassniki-users-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-odnoklassniki-users-0.0.1.tar.gz
Algorithm Hash digest
SHA256 20e52d752cb4ebb94f248b18bee367c1f67afe600f85a1a26b05b1ccead93a56
MD5 633381c5aed1db66db0f0f3a9d91c141
BLAKE2b-256 57dc65e0809526cc4e9f5a6fe09b9a308e4a8ac877aa92cd377b56e1c649b150

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page