Metadata-Version: 2.1
Name: work-weixin-api
Version: 0.0.1
Summary: 企业微信接口封装库
Home-page: https://github.com/mouday/work-weixin-api
Author: Peng Shiyu
Author-email: pengshiyuyx@gmail.com
License: MIT
Description: # Work Weixin Api
        
        企业微信接口封装库
        
        目前实现了简单的发送消息功能，后序按照业务继续增加其他接口
        
        ## install
         
        ```bash
        pip install work-weixin-api
        ```
        
        ## demo
        ```python
        # -*- coding: utf-8 -*-
        
        from work_weixin_api import WorkWeixinClient
        
        
        class CustomWorkWeixinClient(WorkWeixinClient):
            """配置自己企业的信息"""
            # 企业id
            corpid = ""
        
            # 秘钥
            corpsecret = ""
        
            # 应用id
            agent_id = "100000"
        
        
        if __name__ == '__main__':
            client = CustomWorkWeixinClient()
        
            print(client.user_simplelist(department_id=1))
            
            # 发送消息
            print(client.message_send(
                agentid=client.agent_id,
                msgtype="text",
                msgdata={'content': 'hi'}, touser="PengShiYu"
            ))
        
        ```
        
        ## 说明
        
        核心类继承关系：
        
        ```python
        class WorkWeixinApi(object):
            """
            实现了最基础的企业微信接口函数
            """
            
        class WorkWeixinClient(WorkWeixinApi):
            """
            扩展了基本的接口函数
            1、对access_token 进行了缓存
            2、简化了接口调用操作
            """
        
        ```
        
Keywords: work,weixin
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
