Skip to main content

Wechat Template Message Module for Python.

Project description

Wechat Template Message Module for Python.

Installation

pip install pywe-template-message

Usage

from pywe_template_message import TemplateMessage, INDUSTRY_LIST, set_industry, get_industry, add_template, get_all_private_template, del_private_template, send_template_message

Method

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

def set_industry(self, industry_id1, industry_id2, appid=None, secret=None, token=None, storage=None):

def get_industry(self, appid=None, secret=None, token=None, storage=None):

def add_template(self, template_id_short, appid=None, secret=None, token=None, storage=None):

def get_all_private_template(self, appid=None, secret=None, token=None, storage=None):

def del_private_template(self, template_id, appid=None, secret=None, token=None, storage=None):

def send_template_message(self, user_id, template_id, data, url=None, mini_program=None, appid=None, secret=None, token=None, storage=None):

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

pywe-template-message-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pywe_template_message-1.0.0-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pywe-template-message-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pywe-template-message-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a60891f7c9068d4a1d00b6998a54fdbb0c124fbc9a6aa9a0e72eeeb554f3f035
MD5 4092266b0d15aff6d7449f31bc45e2ce
BLAKE2b-256 423594e3c5fff84a3b254922e01f7da793328031b4df109b9111f88c428aae66

See more details on using hashes here.

File details

Details for the file pywe_template_message-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pywe_template_message-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40896ba6b75b3b15fa527559c742493069e46ccc8ee80217b7440f264b30b189
MD5 0cce745d0456a8f88bb6661c52a1d463
BLAKE2b-256 ed6b8bd33a5f164a67644d242a3f80999ee9e326e6e847382cba8966afcefecf

See more details on using hashes here.

Supported by

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