Skip to main content

企业微信API

Project description

# WeCom_API # Initialize the object ` // AGENTID: you can get it from the WeCom // CORPID: you can get it from the WeCom // CORPSECRET: you can get it from the WeCom wx = wx = WeCom.WeCom(AGENTID,CORPID,CORPSECRET) ` # Member methods ## uploadTemp ` wx.uploadTemp(fileType,file,fileName='') ` Upload temporary material

Parameters:

fileType:image, voice, video, file.

file:File buffer ( io.BufferedReader) or URL of the file

fileName: optional for file buffering, but the URL is required

## sendAppMsg ` wx.sendAppMsg(msgType, content) ` Send an application message

Parameters:

msgType:text, image, voice, video, file.

content: for text is text content, others are media id

## sendCardMsg ` wx.sendCardMsg(title,description,url,btntxt) ` Send a card message

Parameters:

title:title of the card

description:the content of the card

url:card jump address

btntxt:button text

## sendNewsMsg ` wx.sendNewsMsg(title,description,url,picurl) ` Send a graphic message

Parameters:

title: title of the graphic

description: text content of the graphic

url: click to jump link

picurl:picture link

## sendMarkdownMsg ` wx. sendMarkdownMsg(content) ` Send markdown message

Parameters:

Content: markdown text

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

WeCom_nodream-1.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

WeCom_nodream-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file WeCom_nodream-1.0.0.tar.gz.

File metadata

  • Download URL: WeCom_nodream-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for WeCom_nodream-1.0.0.tar.gz
Algorithm Hash digest
SHA256 29cddbf827d8daa8eda94be6a3fc40ed876fffb22165e7539b502f183a5dd988
MD5 c2676140cb23642e4da7b27cc89b54ea
BLAKE2b-256 a71b913f7a0406931692c9d0bcccccd3b35d9a5a9373f0413f1d14963ddfec55

See more details on using hashes here.

File details

Details for the file WeCom_nodream-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: WeCom_nodream-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for WeCom_nodream-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76fc3e6997b3a2c334d3daf8f4b4762d5b1feb64498e6fb64c2e1a780889aa7e
MD5 9def2134992f9fb6afe0b8840759429e
BLAKE2b-256 0aa6f3c539089f9d2c10fad8f27d9520af0371f4cd0cc0e66d7648cb863e71c9

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