Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.04 KB

README.rst

File metadata and controls

43 lines (25 loc) · 1.04 KB

Python WorkWeiXin

A Python wrapper around for Work WeiXin API.

Build Status Codecov

Introduction

This library provide easy method to use work.weixin apis.

Using

Message

Now you can use this library to send message in work.weixin app.

This exposed with work.Api class.

You can create an instance of this api to begin:

In [1]: from pywework.api.work import Api

In [2]: api = Api(corp_id='your work id', corp_secret='your work secret', agent_id='')

Now you can send message to user:

In [6]: api.send_text('Hello', to_user='liukun')
Out[6]: {'errcode': 0, 'errmsg': 'ok', 'invaliduser': ''}

TODO