Skip to content

Commit

Permalink
添加了企业飞书接口调用功能
Browse files Browse the repository at this point in the history
  • Loading branch information
fasnow committed Jul 7, 2023
1 parent f45cc2c commit 47b28cd
Show file tree
Hide file tree
Showing 24 changed files with 45 additions and 9 deletions.
54 changes: 45 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,65 @@

## 简介

用于通过企业微信的 corpid 和 corpsecret 自动获取access_token以调试接口
企业微信、企业飞书接口调用工具

**仅用于开发人员用作接口调试,请勿用作其他非法用途。**

## 更新内容

**2023.07.07 v1.0.2**

1. 添加了企业飞书接口调用;

**2023.06.09 v1.0.1**

1. 取消了access_token权限查询功能,权限查询接口现在需要登陆且只能查询登录企业的access_token。

**2023.06.07 v1.0.0**

1. 支持企业微信接口调用。

## 使用方法

目前仅支持查询功能,暂不支持添加数据。从2022年下半年开始,企业微信对`access_token`的数据访问权限限制的比较严格。
![image-20230703195617012](images/image-20230703195617012.png)

**`wechat`模块**

所有命令
使用`use wechat ` 选择模块。

![image-20230606231323064](./images/image-20230606231323064.png)
![image-20230703201309520](images/image-20230703201309520.png)

首先设置`corpid``corpsecret`,如有需要可以设置代理,之后再执行`run`命令。

![image-20230606231931180](./images/image-20230606231931180.png)
![image-20230703203510367](images/image-20230703203510367.png)

导出通信录,不提供部门id的话则会获取全量信息。

![image-20230703200942820](images/image-20230703200942820.png)

![image-20230703202445343](images/image-20230703202445343.png)

![image-20230703201829181](images/image-20230703201829181.png)

其他命令请自行查看使用方法。测试用到的`key`比较少,可能存在未知问题。

**`feishu`模块**

使用`use feishu ` 选择模块,注意红色方框里的说明。

![image-20230703203220263](images/image-20230703203220263.png)

设置认证信息后执行。

![image-20230703203920645](images/image-20230703203920645.png)

如果只需要获取用户数据直接执行`user --dump`即可,文件会自动保存为excel和对应的部门树html文件
导出通信录,不提供部门id的话会获取所有的授权访问部门信息,如果能确定部门权限为全部门,请手动赋值部门id为0,不然获取到的用户信息可能不全

![image-20230606232126727](./images/image-20230606232126727.png)
![image-20230703204335041](images/image-20230703204335041.png)

![image-20230606232756363](./images/image-20230606232756363.png)
![image-20230703204805043](images/image-20230703204805043.png)

![image-20230606232943841](./images/image-20230606232943841.png)
![image-20230703204920340](images/image-20230703204920340.png)

其他命令请自行查看使用方法。测试用到的`key`比较少,可能存在未知问题。

Expand Down
Binary file removed images/image-20230606231323064.png
Binary file not shown.
Binary file removed images/image-20230606231931180.png
Binary file not shown.
Binary file removed images/image-20230606232126727.png
Binary file not shown.
Binary file removed images/image-20230606232756363.png
Binary file not shown.
Binary file removed images/image-20230606232943841.png
Binary file not shown.
Binary file added images/image-20230703194839806.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703195617012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703195731269.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703195906143.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703200926116.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703200942820.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703201309520.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703201556159.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703201829181.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703202445343.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703202646815.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703202929014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703203220263.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703203510367.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703203920645.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703204335041.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703204805043.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-20230703204920340.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47b28cd

Please sign in to comment.