作业地址
https://github.com/jeremy8250/Requests/tree/master/test_wework
企业微信作业
作业地址
https://github.com/Pi-pizhu/QyWxWork
- name: 获取部门列表
url: https://qyapi.weixin.qq.com/cgi-bin/department/list
method: GET
request:
params:
access_token:
id: 1
relevance: access_token
verify:
- assert: [errcode,0]
- assert: [errmsg,ok]
- type: [department,'[]']
- name: 创建部门
url: https://qyapi.weixin.qq.com/cgi-bin/department/create
method: POST
request:
params:
access_token:
json:
name: 测试部
name_en: SDT
parentid: 1
order: 2
id: 6
relevance: access_token
verify:
- assert: [errcode,0]
- assert: [errmsg,created]
- assert: [id,6]
- name: 更新部门
url: https://qyapi.weixin.qq.com/cgi-bin/department/update
method: POST
request:
params:
access_token:
json:
name: 研发部
name_en: SDT-R&B
parentid: 2
order: 10
id: 5
relevance: access_token
verify:
- assert: [errcode,0]
- assert: [errmsg,created]
- name: 删除部门
url: https://qyapi.weixin.qq.com/cgi-bin/department/delete
method: GET
request:
params:
access_token:
id: 6
relevance: access_token
verify:
- assert: [errcode,0]
- assert: [errmsg,deleted]