Skip to main content

Wechat MarketCode Module for Python.

Project description

Wechat MarketCode Module for Python.


pip install pywe-marketcode


from pywe_marketcode import MarketCode, applycode, applycodequery, applycodedownload, codeactive, codeactivequery, tickettocode


class MarketCode(BaseToken):
    def __init__(self, appid=None, secret=None, token=None, storage=None):
        super(MarketCode, self).__init__(appid=appid, secret=secret, token=token, storage=storage)

    def applycode(self, isv_application_id, code_count, appid=None, secret=None, token=None, storage=None):

    def applycodequery(self, isv_application_id, application_id, appid=None, secret=None, token=None, storage=None):

    def applycodedownload(self, application_id, code_start, code_end, appid=None, secret=None, token=None, storage=None, decrypted=True):

    def codeactive(self, application_id, activity_name, product_brand, product_title, product_code, wxa_appid, wxa_path, code_start, code_end, wxa_type=0, appid=None, secret=None, token=None, storage=None):

    def codeactivequery(self, application_id=None, code_index=None, code=None, code_url=None, appid=None, secret=None, token=None, storage=None):

    def tickettocode(self, code_ticket, openid, appid=None, secret=None, token=None, storage=None):

Download files

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

Files for pywe-marketcode, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pywe_marketcode-1.0.3-py2.py3-none-any.whl (3.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pywe-marketcode-1.0.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page