This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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()))
Release History

Release History

This version
History Node

1.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jxwechattool-1.1.0-py2-none-any.whl (4.2 kB) Copy SHA256 Checksum SHA256 py2 Wheel May 29, 2016
jxwechattool-1.1.0.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source May 29, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting