企微管理
查询企微消息任务列表
分页查询企业微信群发消息任务列表,按时间范围过滤。limit 取值范围 1-100。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| appKey | string | 是 | 应用 AppKey | |
| time | int64 | 是 | 请求时间戳(秒) | |
| checksum | string | 是 | 请求签名校验和 | |
| checksumAlgorithm | int32 | 否 | 签名算法:0 - 默认(SHA1),1 - SHA256 |
请求体
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| selfCorpId | string | 否 | 企微企业主体 ID,没有则取默认主体 | wx1234567890 |
| startTime | int64 | 是 | 开始时间(毫秒时间戳) | 1717200000000 |
| endTime | int64 | 是 | 结束时间(毫秒时间戳) | 1717286400000 |
| limit | int32 | 是 | 每页数量,1-100 | 50 |
| cursor | string | 否 | 分页游标,首次查询不传 | cursor_token_abc |
返回参数
| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| code | int32 | 状态码,200 表示成功 | 200 |
| message | string | 提示信息 | success |
| data | object[] | 任务摘要列表 | [{"msgId":"msg_123456","creator":"zhangsan","creatorName":"张三"}] |
| └msgId | string | 消息任务 ID | msg_123456 |
| └creator | string | 创建者企微用户 ID | zhangsan |
| └creatorName | string | 创建者姓名 | 张三 |
| └createTime | int64 | 创建时间,秒时间戳 | 1720085400 |
| └content | string | 群发内容摘要 | 618 活动通知 |
| nextCursor | string | 分页游标,用于获取下一页 | cursor_next_abc |
错误码
| 状态码 | 描述 |
|---|---|
| 14001 | AppKey 不存在 |
| 14002 | checksum 校验失败 |
| 14003 | 请求时间戳与服务器时间误差超过 10 分钟 |
| 14004 | 请求体 JSON 格式错误;参数无效(缺少 startTime/endTime 或 limit 超出范围) |
| 14500 | 服务内部异常 |
postEndpoint
/openapi/wxwork/queryWxworkMsgTaskListcurl -X POST "https://qiyukf.com/openapi/wxwork/queryWxworkMsgTaskList?appKey=string&time=0&checksum=string" \ -H "Content-Type: application/json" \ -d '{ "startTime": 1717200000000, "endTime": 1717286400000, "limit": 50 }'{
"code": 200,
"message": "success",
"data": [
{
"msgId": "msg_123456",
"creator": "zhangsan",
"creatorName": "张三"
}
],
"nextCursor": "cursor_next_abc"
}{
"code": 14001,
"message": "AppKey 不存在"
}{
"code": 14002,
"message": "checksum 校验失败"
}{
"code": 14003,
"message": "请求时间戳与服务器时间误差超过 10 分钟"
}{
"code": 14004,
"message": "请求体 JSON 格式错误;参数无效(缺少 startTime/endTime 或 limit 超出范围)"
}{
"code": 14500,
"message": "服务内部异常"
}这篇文档有帮助吗?