django-vkontakte-api 0.8.7
pip install django-vkontakte-api
Latest version
Released:
Django implementation for vkontakte API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: ramusus
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Django Vkontakte API
====================
[](http://badge.fury.io/py/django-vkontakte-api) [](https://travis-ci.org/ramusus/django-vkontakte-api) [](https://coveralls.io/r/ramusus/django-vkontakte-api)
Application for interaction with objects of VK API using Django ORM
Installation
------------
pip install django-vkontakte-api
Add into `settings.py` lines:
INSTALLED_APPS = (
...
'vkontakte_api',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_VKONTAKTE_CLIENT_ID = '' # application ID
OAUTH_TOKENS_VKONTAKTE_CLIENT_SECRET = '' # application secret key
OAUTH_TOKENS_VKONTAKTE_SCOPE = ['ads', 'wall' ,'photos', 'friends', 'stats'] # application scopes
OAUTH_TOKENS_VKONTAKTE_USERNAME = '' # user login
OAUTH_TOKENS_VKONTAKTE_PASSWORD = '' # user password
OAUTH_TOKENS_VKONTAKTE_PHONE_END = '' # last 4 digits of user mobile phone
Coverage of API methods
-----------------------
* [resolveScreenName](http://vk.com/dev/resolveScreenName) – Detects a type of object (e.g., user, community, application) and its ID by screen name.
Usage examples
--------------
### Simple API request
>>> from vkontakte_api.api import api_call
>>> api_call('resolveScreenName', **{'screen_name': 'durov'})
{u'object_id': 1, u'type': u'user'}
>>> api_call('users.get', **{'user_ids': 'durov'})
[{'first_name': u'Павел', 'last_name': u'Дуров', 'uid': 1}]
====================
[](http://badge.fury.io/py/django-vkontakte-api) [](https://travis-ci.org/ramusus/django-vkontakte-api) [](https://coveralls.io/r/ramusus/django-vkontakte-api)
Application for interaction with objects of VK API using Django ORM
Installation
------------
pip install django-vkontakte-api
Add into `settings.py` lines:
INSTALLED_APPS = (
...
'vkontakte_api',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_VKONTAKTE_CLIENT_ID = '' # application ID
OAUTH_TOKENS_VKONTAKTE_CLIENT_SECRET = '' # application secret key
OAUTH_TOKENS_VKONTAKTE_SCOPE = ['ads', 'wall' ,'photos', 'friends', 'stats'] # application scopes
OAUTH_TOKENS_VKONTAKTE_USERNAME = '' # user login
OAUTH_TOKENS_VKONTAKTE_PASSWORD = '' # user password
OAUTH_TOKENS_VKONTAKTE_PHONE_END = '' # last 4 digits of user mobile phone
Coverage of API methods
-----------------------
* [resolveScreenName](http://vk.com/dev/resolveScreenName) – Detects a type of object (e.g., user, community, application) and its ID by screen name.
Usage examples
--------------
### Simple API request
>>> from vkontakte_api.api import api_call
>>> api_call('resolveScreenName', **{'screen_name': 'durov'})
{u'object_id': 1, u'type': u'user'}
>>> api_call('users.get', **{'user_ids': 'durov'})
[{'first_name': u'Павел', 'last_name': u'Дуров', 'uid': 1}]
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: ramusus
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-vkontakte-api-0.8.7.tar.gz
.
File metadata
- Download URL: django-vkontakte-api-0.8.7.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64b103b0ce0c2a58660081c01f46a7135fceec129f680a133215918e98a635c8 |
|
MD5 | 1e06c219cdbe12680e0c0666e5a48e60 |
|
BLAKE2b-256 | c848cb9b70332f45dc5a303a43e4354d474af04baf8325b5be100cad1298cb38 |