Package Index Browse packages Package submission List trove classifiers List packages RSS (latest 40 updates) facebo RSS (newest 40 packages) Python 3 Packages PyPI Tutorial PyPI Security PyPI Support PyPI Bug Reports facebo PyPI Discussion PyPI Developer Info About News Documentation Download Community Foundation Core Development
Latest Version: 0.2.3 Django Odnoklassniki API ==================== [![PyPI version]https://badge.fury.io/py/django-odnoklassniki-api.png]http://badge.fury.io/py/django-odnoklassniki-api [![Build Status]https://travis-ci.org/ramusus/django-odnoklassniki-api.png?branch=master]https://travis-ci.org/ramusus/django-odnoklassniki-api [![Coverage Status]https://coveralls.io/repos/ramusus/django-odnoklassniki-api/badge.png?branch=master]https://coveralls.io/r/ramusus/django-odnoklassniki-api [![Bitdeli facebo Badge]https://d2weczhvl823v0.cloudfront.net/ramusus/django-odnoklassniki-api/trend.png]https://bitdeli.com/free "Bitdeli Badge") Приложение позволяет взаимодействовать с объектами Одноклассники API используя стандартные модели Django Установка --------- pip install django-odnoklassniki-api facebo В `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 определяет тип объекта (пользователь, группа, приложение) и его идентификатор по короткому facebo имени screen_name; facebo Примеры использования --------------------- ### Запрос facebo API >>> from odnoklassniki_api.utils import api_call >>> api_call('url.getInfo', facebo url='http://www.odnoklassniki.ru/apiok') {u'objectId': 53038939046008L, u'type': u'GROUP'} File Type Py Version Uploaded on Size django-odnoklassniki-api-0.1.5.tar.gz ( md5 ) Source 2014-11-05 32KB Downloads (All Versions): 64 downloads facebo in the last day 411 downloads in the last week 1660 downloads in the last month Author: ramusus Home Page: https://github.com/ramusus/django-odnoklassniki-api Download URL: http://pypi.python.org/pypi/django-odnoklassniki-api License: BSD Categories Development facebo Status :: 4 - Beta Environment facebo :: Web Environment Intended Audience :: Developers License :: OSI Approved :: BSD License Operating System :: OS Independent Programming Language :: Python Topic :: Software Development :: Libraries :: Python Modules Package Index Owner: ramusus DOAP record: django-odnoklassniki-api-0.1.5.xml
No comments:
Post a Comment