- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
获取「群聊数据统计」数据-按群主聚合的方式
POST
http://127.0.0.1/cgi-bin/externalcontact/groupchat/statistic
第三方应用开发/客户联系/统计管理
最后修改时间:2022-08-30 03:03:36
责任人:未设置
请求参数
Query 参数
access_token
string
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
day_begin_time
integer
必需
day_end_time
integer
必需
owner_filter
object
必需
userid_list
array[string]
必需
order_by
integer
必需
order_asc
integer
必需
offset
integer
必需
limit
integer
必需
示例
{
"day_begin_time": 1600272000,
"day_end_time": 1600444800,
"owner_filter": {
"userid_list": [
"zhangsan"
]
},
"order_by": 2,
"order_asc": 0,
"offset": 0,
"limit": 1000
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1/cgi-bin/externalcontact/groupchat/statistic?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"day_begin_time": 1600272000,
"day_end_time": 1600444800,
"owner_filter": {
"userid_list": [
"zhangsan"
]
},
"order_by": 2,
"order_asc": 0,
"offset": 0,
"limit": 1000
}'
返回响应
🟢200成功
application/json
Body
errcode
integer <int32>
返回码
total
integer <int32>
可选
errmsg
string
可选
next_offset
integer <int32>
可选
items
array [object {2}]
可选
owner
string
可选
data
object
可选
示例
{
"errcode": 0,
"total": 0,
"errmsg": "string",
"next_offset": 0,
"items": [
{
"owner": "string",
"data": {
"chat_has_msg": 0,
"member_has_msg": 0,
"chat_total": 0,
"new_member_cnt": 0,
"msg_total": 0,
"member_total": 0,
"new_chat_cnt": 0,
"migrate_trainee_chat_cnt": 0
}
}
]
}

修改于 2022-08-30 03:03:36