Skip to main content

pywechat access_token qrcode

Project description

基于redis对wechat中access_token、qr_code、jsapi_ticket的cache

$ pip install jxwechattool

Version update

  • 0.1.0 添加WJSTicket

  • 0.0.1 添加WAccessToken, WQRCode

Getting Started

#!/bin/python2
# coding=utf-8

import logging
import WAccessToken, WQRCode, WJSTicket

logging.basicConfig(level=logging.DEBUG)

access_token_handler = WAccessToken(
    app_id=APP_ID,
    app_secret=APP_SECRET)

logging.warn(("access_token", access_token_handler.get_access_token()))

qr_handler = WQRCode(access_token_handler)

logging.warn(("qr ur", qr_handler.get_qrcode_url_by_m("c-8")))
logging.warn(("info ", qr_handler.get_qrcode_info_by_scene_id(80)))

jsapi_ticket_handler = WJSTicket(access_token_handler)

logging.warn(("jsapi_ticket", jsapi_ticket_handler.get_jsapi_ticket()))

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

jxwechattool-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jxwechattool-1.1.0-py2-none-any.whl (4.2 kB view details)

Uploaded Python 2

File details

Details for the file jxwechattool-1.1.0.tar.gz.

File metadata

  • Download URL: jxwechattool-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jxwechattool-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0aa83bd4c35d1726f140084d5669b96a86936cda03afa9123ea35dbe4dc81211
MD5 0f0699a0340bc83344d88fd49cbec7a2
BLAKE2b-256 2f5d3e9e2fddda2b76a9bcc86fd959648770c36bbe4f6765542f0df3b3f5bcf9

See more details on using hashes here.

File details

Details for the file jxwechattool-1.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for jxwechattool-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 e9ad7d2d182ed01e7b7165509cedac064dfb213508265c571540366a96da6d95
MD5 22d70b2c594e3f5d5cb3f8dbb410046e
BLAKE2b-256 471584c62ab42cde359d3b8fa09e31aefdcb757e7ce7c3db91defb47f586a740

See more details on using hashes here.

Supported by

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