Skip to main content

微信登录授权的Python库

开发文档

网站应用微信登录开发指南

配置网页授权域名

登录微信公众平台: 开发 -> 接口权限 -> 网页授权获取用户基本信息 -> 网页授权域名

Example Usage

  • 创建service

from wechat_oauth2 import WeChatService
wechat = WeChatService(appid,
                       secret)
  • 获取authorize_url

params = {'redirect_uri': redirect_uri, 'scope': 'snsapi_userinfo'}
return redirect(wechat.get_authorize_url(**params))

Download files

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

Source Distribution

WeChat-OAuth2-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file WeChat-OAuth2-0.1.2.tar.gz.

File metadata

  • Download URL: WeChat-OAuth2-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for WeChat-OAuth2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 53f7bd78127914fdba47959e5ad1f4ca34cce13b6721024a9e1e5896304fe92c
MD5 67f6a3085a3e07cb4c7b0feac16fe2a1
BLAKE2b-256 6024f3c17104a57420ec32243849108263e027e842c2dc1c9990c84072bcfecb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 file

0.1.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page