Baidu XiongZhang Oauth Module for Python.
Project description
Baidu XiongZhang Oauth Module for Python.
Installation
pip install pybd-oauth
Usage
from pybd_oauth import get_access_info, get_oauth_code_url, get_userinfo, get_component_access_info, get_component_oauth_code_url, get_component_userinfo, get_oauth_redirect_url
Method
def get_oauth_code_url(self, appid=None, redirect_uri=None, scope='snsapi_base', redirect_url=None, component=False, component_appid=None): def get_access_info(self, appid=None, secret=None, code=None, component=False, component_appid=None, component_access_token=None): def get_userinfo(self, access_token=None, openid=None, component=False): def get_component_oauth_code_url(self, appid=None, redirect_uri=None, scope='snsapi_base', redirect_url=None, component_appid=None): def get_component_access_info(self, appid=None, code=None, component_appid=None, component_access_token=None): def get_component_userinfo(self, access_token=None, openid=None): def get_oauth_redirect_url(self, oauth_uri, scope='snsapi_base', redirect_url=None, default_url=None, direct_redirect=None, random_str=True):
Project details
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
pybd-oauth-1.0.3.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for pybd_oauth-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7a4151fd8e4b061fc0c9a8fdd65d4a29991324f05ea5cd2aeb60b32c239034 |
|
MD5 | 74d6da154e8fc2503c640601c6d7ecdb |
|
BLAKE2b-256 | 3eb537561e52e7c918db93f7ebff21701bcc8b7b77da8853dc877c9e169a2740 |