Code Monkey home page Code Monkey logo

wework-archives's Introduction

企业微信消息存档-Python

前言

企业微信消息存档的文档和SDK文档材料相对比较少,也只提供了C和JAVA 版本的SDK,文档和案例也比较缺,踩了一天的坑,用Python调用C版本linux的 so库实现了下,加解密流程相对比较复杂。

做了个脚本示例,可以跑通拉取存档消息存档的信息数据和解密的。

已经完成:

  • 在Python引入SDK so库初始化
  • 加解密和秘钥秘钥处理
  • 拉取消息存档加密信息
  • 解密信息获取内容并结构化

Todo

根据media_id 获取媒体材料 [done]

提示

  1. 先阅读企业微信的文档,文档地址:https://developer.work.weixin.qq.com/document/path/91774
  2. 脚本中使用的是Linux C版的so库,SDK接口调用参数见文档
  3. 企业微信提供了C/JAVA的SDK只支持Linux和win,mac版本不可用linux版本,会提示so出错,用源代码编译后也不能使用,这个要注意。
  4. 脚本运行环境Python3.x,2.x未测试
  5. 运行系统 ubuntu 20.04, Windows SDK未尝试,和linux差不多,看ctype库的引用方式
  6. 代码写得比较简陋,主要是示例使用过程和一些参数处理和调用,已经测试跑通过的,本职工作是个产品经理[手工狗头]

wework-archives's People

Contributors

wjason 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.