fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat

企业微信官方接口新增:获取已服务的外部联系人

Closed this issue · 3 comments

接口文档地址:https://developer.work.weixin.qq.com/document/path/99434

官方描述:
企业可通过此接口获取所有已服务的外部联系人,及其添加人和加入的群聊。外部联系人分为客户和其他外部联系人,如果是客户,接口将返回外部联系人临时ID和externaluserid;如果是其他外部联系人,接口将只返回外部联系人临时ID。

请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/contact_list?access_token=ACCESS_TOKEN

请求参数:

{
	"cursor":"CURSOR",
  	"limit":1000
}

返回结果

{
   "errcode": 0,
   "errmsg": "ok",
   "info_list":
   [
   		{
			"is_customer":false,
			"name":"***开",
			"tmp_openid":"TMP_ID",
			"follow_userid":"USER_ID",
			"chat_name":"外联群1",
			"add_time":1694418699
		  },
		  {
		  	"is_customer":true,
			"tmp_openid":"TMP_ID",
			"external_userid":"woAJ2GCAAAXtWyujaWJHDDGi0mACHAAA",
			"follow_userid":"USER_ID",
			"add_time":1694418699
		  },
		  {
		  	"is_customer":true,
			"tmp_openid":"TMP_ID",
			"external_userid":"woAJ2GCAAAXtWyujaWJHDDGi0mACHAAA",
			"chat_id":"CHATID",
			"add_time":1694418699
		  },
		    {
		  	"is_customer":false,
			"tmp_openid":"TMP_ID",
			"name":"***开",
			"follow_userid":"USER_ID",
			"add_time":1694418699
		  }
   ],
   "next_cursor":"NEXT_CURSOR"
}

来个 PR~

来个 PR~

等忙完。。

已补充。将随下一版本 release,敬请留意。