mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-11-26 10:19:42 +08:00
feat(work): 导入企业微信 API 客户端项目
This commit is contained in:
1
test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/.gitignore
vendored
Normal file
1
test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
appsettings.local.json
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"ip_list": [
|
||||
"182.254.11.176",
|
||||
"182.254.78.66"
|
||||
],
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"access_token": "accesstoken000001",
|
||||
"expires_in": 7200
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"agentid": 1000005,
|
||||
"name": "HR助手",
|
||||
"square_logo_url": "https://p.qlogo.cn/bizmail/FicwmI50icF8GH9ib7rUAYR5kicLTgP265naVFQKnleqSlRhiaBx7QA9u7Q/0",
|
||||
"description": "HR服务与员工自助平台",
|
||||
"allow_userinfos": {
|
||||
"user": [
|
||||
{ "userid": "zhangshan" },
|
||||
{ "userid": "lisi" }
|
||||
]
|
||||
},
|
||||
"allow_partys": {
|
||||
"partyid": [ 1 ]
|
||||
},
|
||||
"allow_tags": {
|
||||
"tagid": [ 1, 2, 3 ]
|
||||
},
|
||||
"close": 0,
|
||||
"redirect_domain": "open.work.weixin.qq.com",
|
||||
"report_location_flag": 0,
|
||||
"isreportenter": 0,
|
||||
"home_url": "https://open.work.weixin.qq.com"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"agentlist": [
|
||||
{
|
||||
"agentid": 1000005,
|
||||
"name": "HR助手",
|
||||
"square_logo_url": "https://p.qlogo.cn/bizmail/FicwmI50icF8GH9ib7rUAYR5kicLTgP265naVFQKnleqSlRhiaBx7QA9u7Q/0"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"agentid": 1000005,
|
||||
"report_location_flag": 0,
|
||||
"logo_mediaid": "j5Y8X5yocspvBHcgXMSS6z1Cn9RQKREEJr4ecgLHi4YHOYP-plvom-yD9zNI0vEl",
|
||||
"name": "财经助手",
|
||||
"description": "内部财经服务平台",
|
||||
"redirect_domain": "open.work.weixin.qq.com",
|
||||
"isreportenter": 0,
|
||||
"home_url": "https://open.work.weixin.qq.com"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"agentid": 1000005
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"type": "image",
|
||||
"keydata": {
|
||||
"items": [
|
||||
{
|
||||
"key": "待审批",
|
||||
"data": "2",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "带批阅作业",
|
||||
"data": "4",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "成绩录入",
|
||||
"data": "45",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "综合评价",
|
||||
"data": "98",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
}
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"items": [
|
||||
{
|
||||
"title": "智慧校园新版设计的小程序要来啦",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"title": "植物百科,这是什么花",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"title": "周一升旗通知,全体学生必须穿校服",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
}
|
||||
]
|
||||
},
|
||||
"image": {
|
||||
"url": "xxxx",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
"webview": {
|
||||
"url": "http://www.qq.com",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
"replace_user_data": true
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"agentid": 1000005,
|
||||
"userid": "test",
|
||||
"type": "keydata",
|
||||
"keydata": {
|
||||
"items": [
|
||||
{
|
||||
"key": "待审批",
|
||||
"data": "2",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "带批阅作业",
|
||||
"data": "4",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "成绩录入",
|
||||
"data": "45",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "综合评价",
|
||||
"data": "98",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"agentid": 1000005,
|
||||
"type": "image",
|
||||
"keydata": {
|
||||
"items": [
|
||||
{
|
||||
"key": "待审批",
|
||||
"data": "2",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "带批阅作业",
|
||||
"data": "4",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "成绩录入",
|
||||
"data": "45",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"key": "综合评价",
|
||||
"data": "98",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
}
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"items": [
|
||||
{
|
||||
"title": "智慧校园新版设计的小程序要来啦",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"title": "植物百科,这是什么花",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
{
|
||||
"title": "周一升旗通知,全体学生必须穿校服",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
}
|
||||
]
|
||||
},
|
||||
"image": {
|
||||
"url": "xxxx",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
"webview": {
|
||||
"url": "http://www.qq.com",
|
||||
"jump_url": "http://www.qq.com",
|
||||
"pagepath": "pages/index"
|
||||
},
|
||||
"replace_user_data": true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"status": 1,
|
||||
"type": "replace_user",
|
||||
"total": 3,
|
||||
"percentage": 33,
|
||||
"result": [
|
||||
{
|
||||
"userid": "lisi",
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
},
|
||||
{
|
||||
"userid": "zhangsan",
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
},
|
||||
{
|
||||
"action": 1,
|
||||
"partyid": 1,
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
},
|
||||
{
|
||||
"action": 4,
|
||||
"partyid": 2,
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"user": [ "UserID1", "UserID2", "UserID3" ],
|
||||
"party": [ 1, 2 ],
|
||||
"tag": [ 1, 2 ]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"invaliduser": [ "UserID1", "UserID2" ],
|
||||
"invalidparty": [ 1, 2 ],
|
||||
"invalidtag": [ 1, 2 ]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"media_id": "xxxxxx",
|
||||
"callback": {
|
||||
"url": "xxx",
|
||||
"token": "xxx",
|
||||
"encodingaeskey": "xxx"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"jobid": "xxxxx"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"media_id": "xxxxxx",
|
||||
"to_invite": true,
|
||||
"callback": {
|
||||
"url": "xxx",
|
||||
"token": "xxx",
|
||||
"encodingaeskey": "xxx"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"jobid": "xxxxx"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"media_id": "xxxxxx",
|
||||
"to_invite": true,
|
||||
"callback": {
|
||||
"url": "xxx",
|
||||
"token": "xxx",
|
||||
"encodingaeskey": "xxx"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"jobid": "xxxxx"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"join_qrcode": "https://work.weixin.qq.com/wework_admin/genqrcode?action=join&vcode=3db1fab03118ae2aa1544cb9abe84&r=hb_share_api_mjoin&qr_size=3"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"corpid": "wwabc",
|
||||
"agentid": 1111
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"access_token": "accesstoken000001",
|
||||
"expires_in": 7200
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"agentid": 1111
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"corp_list": [
|
||||
{
|
||||
"corpid": "wwcorpid1",
|
||||
"corp_name": "测试企业1",
|
||||
"agentid": 1111
|
||||
},
|
||||
{
|
||||
"corpid": "wwcorpid2",
|
||||
"corp_name": "测试企业2",
|
||||
"agentid": 1112
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "广州研发中心",
|
||||
"name_en": "RDGZ",
|
||||
"parentid": 1,
|
||||
"order": 1,
|
||||
"id": 2
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "created",
|
||||
"id": 2
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "deleted"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"department": [
|
||||
{
|
||||
"id": 2,
|
||||
"name": "广州研发中心",
|
||||
"name_en": "RDGZ",
|
||||
"parentid": 1,
|
||||
"order": 10
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "邮箱产品部",
|
||||
"name_en": "mail",
|
||||
"parentid": 2,
|
||||
"order": 40
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"id": 2,
|
||||
"name": "广州研发中心",
|
||||
"name_en": "RDGZ",
|
||||
"parentid": 1,
|
||||
"order": 1
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "updated"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"userid": "zhangyisheng",
|
||||
"external_userid": "woAJ2GCAAAXtWyujaWJHDDGi0mACHAAA"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"follow_user": [
|
||||
"zhangsan",
|
||||
"lissi"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"type": 1,
|
||||
"scene": 1,
|
||||
"style": 1,
|
||||
"remark": "渠道客户",
|
||||
"skip_verify": true,
|
||||
"state": "teststate",
|
||||
"user": [ "zhangsan", "lisi", "wangwu" ],
|
||||
"party": [ 2, 3 ],
|
||||
"is_temp": true,
|
||||
"expires_in": 86400,
|
||||
"chat_expires_in": 86400,
|
||||
"unionid": "oxTWIuGaIt6gTKsQRLau2M0AAAA",
|
||||
"conclusions": {
|
||||
"text": {
|
||||
"content": "文本消息内容"
|
||||
},
|
||||
"image": {
|
||||
"media_id": "MEDIA_ID"
|
||||
},
|
||||
"link": {
|
||||
"title": "消息标题",
|
||||
"picurl": "https://example.pic.com/path",
|
||||
"desc": "消息描述",
|
||||
"url": "https://example.link.com/path"
|
||||
},
|
||||
"miniprogram": {
|
||||
"title": "消息标题",
|
||||
"pic_media_id": "MEDIA_ID",
|
||||
"appid": "wx8bd80126147dfAAA",
|
||||
"page": "/path/index.html"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"config_id": "42b34949e138eb6e027c123cba77fAAA",
|
||||
"qr_code": "http://p.qpic.cn/wwhead/duc2TvpEgSdicZ9RrdUtBkv2UiaA/0"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"config_id": "42b34949e138eb6e027c123cba77fAAA"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"config_id": "42b34949e138eb6e027c123cba77fad7"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"contact_way": {
|
||||
"config_id": "42b34949e138eb6e027c123cba77fAAA",
|
||||
"type": 1,
|
||||
"scene": 1,
|
||||
"style": 2,
|
||||
"remark": "test remark",
|
||||
"skip_verify": true,
|
||||
"state": "teststate",
|
||||
"qr_code": "http://p.qpic.cn/wwhead/duc2TvpEgSdicZ9RrdUtBkv2UiaA/0",
|
||||
"user": [ "zhangsan", "lisi", "wangwu" ],
|
||||
"party": [ 2, 3 ],
|
||||
"is_temp": true,
|
||||
"expires_in": 86400,
|
||||
"chat_expires_in": 86400,
|
||||
"unionid": "oxTWIuGaIt6gTKsQRLau2M0AAAA",
|
||||
"conclusions": {
|
||||
"text": {
|
||||
"content": "文本消息内容"
|
||||
},
|
||||
"image": {
|
||||
"pic_url": "http://p.qpic.cn/pic_wework/XXXXX"
|
||||
},
|
||||
"link": {
|
||||
"title": "消息标题",
|
||||
"picurl": "https://example.pic.com/path",
|
||||
"desc": "消息描述",
|
||||
"url": "https://example.link.com/path"
|
||||
},
|
||||
"miniprogram": {
|
||||
"title": "消息标题",
|
||||
"pic_media_id": "MEDIA_ID",
|
||||
"appid": "wx8bd80126147dfAAA",
|
||||
"page": "/path/index"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"config_id": "42b34949e138eb6e027c123cba77fAAA",
|
||||
"remark": "渠道客户",
|
||||
"skip_verify": true,
|
||||
"style": 1,
|
||||
"state": "teststate",
|
||||
"user": [ "zhangsan", "lisi", "wangwu" ],
|
||||
"party": [ 2, 3 ],
|
||||
"expires_in": 86400,
|
||||
"chat_expires_in": 86400,
|
||||
"unionid": "oxTWIuGaIt6gTKsQRLau2M0AAAA",
|
||||
"conclusions": {
|
||||
"text": {
|
||||
"content": "文本消息内容"
|
||||
},
|
||||
"image": {
|
||||
"media_id": "MEDIA_ID"
|
||||
},
|
||||
"link": {
|
||||
"title": "消息标题",
|
||||
"picurl": "https://example.pic.com/path",
|
||||
"desc": "消息描述",
|
||||
"url": "https://example.link.com/path"
|
||||
},
|
||||
"miniprogram": {
|
||||
"title": "消息标题",
|
||||
"pic_media_id": "MEDIA_ID",
|
||||
"appid": "wx8bd80126147dfAAA",
|
||||
"page": "/path/index"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"userids": [
|
||||
"CORPID/USERID"
|
||||
],
|
||||
"department_ids": [
|
||||
"LINKEDID/DEPARTMENTID"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"department_id": "LINKEDID/DEPARTMENTID"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"department_list": [
|
||||
{
|
||||
"department_id": "1",
|
||||
"department_name": "测试部门1",
|
||||
"parentid": "0",
|
||||
"order": 100000000
|
||||
},
|
||||
{
|
||||
"department_id": "2",
|
||||
"department_name": "测试部门2",
|
||||
"parentid": "1",
|
||||
"order": 99999999
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"userid": "CORPID/USERID"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"user_info": {
|
||||
"userid": "zhangsan",
|
||||
"name": "张三",
|
||||
"department": [
|
||||
"LINKEDID/1",
|
||||
"LINKEDID/2"
|
||||
],
|
||||
"mobile": "+86 12345678901",
|
||||
"telephone": "10086",
|
||||
"email": "zhangsan@tencent.com",
|
||||
"position": "后台开发",
|
||||
"corpid": "xxxxxx",
|
||||
"extattr": {
|
||||
"attrs": [
|
||||
{
|
||||
"name": "自定义属性(文本)",
|
||||
"type": 0,
|
||||
"text": {
|
||||
"value": "10086"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "自定义属性(网页)",
|
||||
"type": 1,
|
||||
"web": {
|
||||
"url": "https://work.weixin.qq.com/",
|
||||
"title": "官网"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"department_id": "LINKEDID/DEPARTMENTID",
|
||||
"fetch_child": true
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"userlist": [
|
||||
{
|
||||
"userid": "zhangsan",
|
||||
"name": "张三",
|
||||
"department": [
|
||||
"LINKEDID/1",
|
||||
"LINKEDID/2"
|
||||
],
|
||||
"mobile": "+86 12345678901",
|
||||
"telephone": "10086",
|
||||
"email": "zhangsan@tencent.com",
|
||||
"position": "后台开发",
|
||||
"corpid": "xxxxxx",
|
||||
"extattr": {
|
||||
"attrs": [
|
||||
{
|
||||
"name": "自定义属性(文本)",
|
||||
"type": 0,
|
||||
"text": {
|
||||
"value": "10086"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "自定义属性(网页)",
|
||||
"type": 1,
|
||||
"web": {
|
||||
"url": "https://work.weixin.qq.com/",
|
||||
"title": "官网"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"department_id": "LINKEDID/DEPARTMENTID",
|
||||
"fetch_child": true
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"userlist": [
|
||||
{
|
||||
"userid": "zhangsan",
|
||||
"name": "张三",
|
||||
"department": [ "LINKEDID/1", "LINKEDID/2" ],
|
||||
"corpid": "xxxxxx"
|
||||
},
|
||||
{
|
||||
"userid": "lisi",
|
||||
"name": "李四",
|
||||
"department": [ "LINKEDID/1" ],
|
||||
"corpid": "xxxxxx"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "",
|
||||
"url": "http://p.qpic.cn/pic_wework/3474110808/7a7c8471673ff0f178f63447935d35a5c1247a7f31d9c060/0"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "",
|
||||
"type": "image",
|
||||
"media_id": "1G6nrLmr5EC3MMb_-zK1dDdzmd0p7cNliYu9V5w7o8K0",
|
||||
"created_at": "1380000000"
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"button": [
|
||||
{
|
||||
"type": "click",
|
||||
"name": "今日歌曲",
|
||||
"key": "V1001_TODAY_MUSIC"
|
||||
},
|
||||
{
|
||||
"name": "菜单",
|
||||
"sub_button": [
|
||||
{
|
||||
"type": "view",
|
||||
"name": "搜索",
|
||||
"url": "http://www.soso.com/"
|
||||
},
|
||||
{
|
||||
"type": "click",
|
||||
"name": "赞一下我们",
|
||||
"key": "V1001_GOOD"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "扫码",
|
||||
"sub_button": [
|
||||
{
|
||||
"type": "scancode_waitmsg",
|
||||
"name": "扫码带提示",
|
||||
"key": "rselfmenu_0_0",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "scancode_push",
|
||||
"name": "扫码推事件",
|
||||
"key": "rselfmenu_0_1",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "view_miniprogram",
|
||||
"name": "小程序",
|
||||
"pagepath": "pages/lunar/index",
|
||||
"appid": "wx4389ji4kAAA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "发图",
|
||||
"sub_button": [
|
||||
{
|
||||
"type": "pic_sysphoto",
|
||||
"name": "系统拍照发图",
|
||||
"key": "rselfmenu_1_0",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "pic_photo_or_album",
|
||||
"name": "拍照或者相册发图",
|
||||
"key": "rselfmenu_1_1",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "pic_weixin",
|
||||
"name": "微信相册发图",
|
||||
"key": "rselfmenu_1_2",
|
||||
"sub_button": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "发送位置",
|
||||
"type": "location_select",
|
||||
"key": "rselfmenu_2_0"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"button": [
|
||||
{
|
||||
"type": "click",
|
||||
"name": "今日歌曲",
|
||||
"key": "V1001_TODAY_MUSIC"
|
||||
},
|
||||
{
|
||||
"name": "菜单",
|
||||
"sub_button": [
|
||||
{
|
||||
"type": "view",
|
||||
"name": "搜索",
|
||||
"url": "http://www.soso.com/"
|
||||
},
|
||||
{
|
||||
"type": "click",
|
||||
"name": "赞一下我们",
|
||||
"key": "V1001_GOOD"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "扫码",
|
||||
"sub_button": [
|
||||
{
|
||||
"type": "scancode_waitmsg",
|
||||
"name": "扫码带提示",
|
||||
"key": "rselfmenu_0_0",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "scancode_push",
|
||||
"name": "扫码推事件",
|
||||
"key": "rselfmenu_0_1",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "view_miniprogram",
|
||||
"name": "小程序",
|
||||
"pagepath": "pages/lunar/index",
|
||||
"appid": "wx4389ji4kAAA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "发图",
|
||||
"sub_button": [
|
||||
{
|
||||
"type": "pic_sysphoto",
|
||||
"name": "系统拍照发图",
|
||||
"key": "rselfmenu_1_0",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "pic_photo_or_album",
|
||||
"name": "拍照或者相册发图",
|
||||
"key": "rselfmenu_1_1",
|
||||
"sub_button": []
|
||||
},
|
||||
{
|
||||
"type": "pic_weixin",
|
||||
"name": "微信相册发图",
|
||||
"key": "rselfmenu_1_2",
|
||||
"sub_button": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "发送位置",
|
||||
"type": "location_select",
|
||||
"key": "rselfmenu_2_0"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"userid": "wmAoNVCwAAUrSqEqz7oQpEIEMVWDrPeg",
|
||||
"session_key": "n8cnNEoyW1pxSRz6/Lwjwg=="
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"userid": "jack",
|
||||
"session_key": "DGAuy2KVaGcnsUrXk8ERgw==",
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"tagname": "UI",
|
||||
"tagid": 12
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "created",
|
||||
"tagid": 12
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "deleted"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"tagname": "乒乓球协会",
|
||||
"userlist": [
|
||||
{
|
||||
"userid": "zhangsan",
|
||||
"name": "李四"
|
||||
}
|
||||
],
|
||||
"partylist": [ 2 ]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"taglist": [
|
||||
{
|
||||
"tagid": 1,
|
||||
"tagname": "a"
|
||||
},
|
||||
{
|
||||
"tagid": 2,
|
||||
"tagname": "b"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"tagid": 12,
|
||||
"tagname": "UI design"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "updated"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"tagid": 12,
|
||||
"userlist": [ "user1", "user2" ],
|
||||
"partylist": [ 4 ]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"invalidlist": "usr1|usr2|usr",
|
||||
"invalidparty": [ 2, 4 ]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"tagid": 12,
|
||||
"userlist": [ "user1", "user2" ],
|
||||
"partylist": [ 2, 4 ]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "deleted",
|
||||
"invalidlist": "usr1|usr2|usr",
|
||||
"invalidparty": [ 2, 4 ]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"useridlist": [ "zhangsan", "lisi" ]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "deleted"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"userid": "zhangsan"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"openid": "oDjGHs-1yCnGrRovBj2yHij5JAAA"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"openid": "oDjGHs-1yCnGrRovBj2yHij5JAAA"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"userid": "zhangsan"
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"userid": "zhangsan",
|
||||
"name": "张三",
|
||||
"alias": "jackzhang",
|
||||
"mobile": "13800000000",
|
||||
"department": [ 1, 2 ],
|
||||
"order": [ 10, 40 ],
|
||||
"position": "产品经理",
|
||||
"gender": "1",
|
||||
"email": "zhangsan@gzdev.com",
|
||||
"is_leader_in_dept": [ 1, 0 ],
|
||||
"enable": 1,
|
||||
"avatar_mediaid": "2-G6nrLmr5EC3MNb_-zL1dDdzkd0p7cNliYu9V5w7o8K0",
|
||||
"telephone": "020-123456",
|
||||
"address": "广州市海珠区新港中路",
|
||||
"extattr": {
|
||||
"attrs": [
|
||||
{
|
||||
"type": 0,
|
||||
"name": "文本名称",
|
||||
"text": {
|
||||
"value": "文本"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "网页名称",
|
||||
"web": {
|
||||
"url": "http://www.test.com",
|
||||
"title": "标题"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"to_invite": true,
|
||||
"external_position": "高级产品经理",
|
||||
"external_profile": {
|
||||
"external_corp_name": "企业简称",
|
||||
"external_attr": [
|
||||
{
|
||||
"type": 0,
|
||||
"name": "文本名称",
|
||||
"text": {
|
||||
"value": "文本"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "网页名称",
|
||||
"web": {
|
||||
"url": "http://www.test.com",
|
||||
"title": "标题"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": 2,
|
||||
"name": "测试app",
|
||||
"miniprogram": {
|
||||
"appid": "wx8bd8012614784fake",
|
||||
"pagepath": "/index",
|
||||
"title": "my miniprogram"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "created"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user