Skip to main content

A simple wechat notification

Project description

wxnotify

wxnotify是一个基于企业微信应用API的微信通知(使用企业微信的微信插件可以实现推送消息至微信)

配置

略复杂但是一次性的
个人也可以注册企业微信,不认证有所限制但不影响消息推送

  1. 注册企业微信企业微信官网

  2. 创建应用 注册成功后,点管理企业进入管理界面(企业微信后台),选择应用管理应用管理界面自建创建应用 应用名称和logo随意 可见范围选择公司名。 创建完成后进入应用详情页,可以得到应用ID( AgentId )形式如1000002,应用Secret( CORPSECRET )形式如92XHnUVXQ***************6pwRiUgnTx1A
    点击我的企业最下方有企业ID(CORPID)形式如wwfaa43666b1****

  3. 关注微信插件 在企业微信管理界面(企业微信后台) 点击我的企业 -> 微信插件 微信插件

安装

pip install wxnotify

使用pip豆瓣源的建议使用如下语句

pip install wxnotify -i https://pypi.python.org/simple

示例

# 企业ID
CORPID = 'wwfaa43666b1****'
# 应用Secret
CORPSECRET = '92XHnUVXQ***************6pwRiUgnTx1A'
# 应用ID
AgentId = '1000002'

t = wxnotify.WxNotify(CORPID,CORPSECRET,AgentId)
res = t.send('this is a message')
print(res)

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

wxnotify-0.0.1.win-amd64.zip (6.1 kB view details)

Uploaded Source

Built Distribution

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

wxnotify-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file wxnotify-0.0.1.win-amd64.zip.

File metadata

  • Download URL: wxnotify-0.0.1.win-amd64.zip
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for wxnotify-0.0.1.win-amd64.zip
Algorithm Hash digest
SHA256 14786943160d8c6cda18e18919887c0422be73b84c3e1fb3101cf786ad6f7968
MD5 77b205480fc025377e09809415f7171f
BLAKE2b-256 69cb3c5700378c660b69fcf2b98aa6b53582f86bf0d303d1c49c6fb0b7470a4f

See more details on using hashes here.

File details

Details for the file wxnotify-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: wxnotify-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for wxnotify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1a087431f21d676848574ab8edb13c3365f982c5a57a8898b5615848904bdaf
MD5 e6866eb377a02e1a7697c6174e0ce150
BLAKE2b-256 9a6eefd8033ec04dd6ac8cc9b6627981017f13baab32365c20571c280af4a403

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