Git Product home page Git Product logo

wechat_work's Introduction

企业微信工具

这是一个基于企业微信 API 开发的用于消息通知的 Python 库

Guide

开始之前,请先跟随一下步骤创建一个企业微信应用

Installation

  • 通过 pip 安装
pip install wechat_work
  • 通过 gitpip 安装
pip install git+https://github.com/Micro-sheep/wechat_work.git

Examples

from wechat_work import WechatWork
corpid = '企业 ID'
appid = '企业应用 ID'
corpsecret = '企业应用 Secret'
users = ['企业微信的用户账号1', '企业微信的用户账号2']
w = WechatWork(corpid=corpid,
               appid=appid,
               corpsecret=corpsecret)
# 发送文本
w.send_text('Hello World!', users)
# 发送 Markdown
w.send_markdown('# Hello World', users)
# 发送图片
w.send_image('./hello.jpg', users)
# 发送文件
w.send_file('./hello.txt', users)

wechat_work's People

Contributors

micro-sheep avatar wk240 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.