获取群发任务执行结果接口

企业可通过此接口来获取群发任务执行结果。

请求方式: POST(HTTPS)

请求地址: https://open.wshoto.com/openapi/mass_send/corp/get_task_execute_result

Query参数:

参数 类型 必填 说明
access_token string 调用接口凭证

Body参数:

{
    "task_id": 89,
    "user_id": [
        "fake_data1",
        "fake_data2"
    ]
}
参数 类型 必填 说明
task_id int 群发任务id
user_id array 群发员工ID

返回值:

{
  "code": 0,
  "msg": "请求成功",
  "data": {
    "user_id_key1": {
      "plan_targets_file_path": "fake_data",
      "un_send_targets_file_path": "fake_data",
      "success_targets_file_path": "fake_data",
      "fail_targets_file_path": "fake_data",
      "excess_targets_file_path": "fake_data",
      "user_id": "user_id_key1"
    },
    "user_id_key12": {
      "plan_targets_file_path": "fake_data",
      "un_send_targets_file_path": "fake_data",
      "success_targets_file_path": "fake_data",
      "fail_targets_file_path": "fake_data",
      "excess_targets_file_path": "fake_data",
      "user_id": "user_id_key12"
    }
  }
}

返回说明:

参数 类型 说明
code int 出错返回码,为0表示成功,非0表示调用失败
msg string 返回码描述
data object 文本下载地址
key idMapping 请求参数中员工id信息(员工ID),任务分配的员工ID
value object 结果对象
plan_targets_file_path string 预计发送目标列表COS文件FilePath
un_send_targets_file_path string 未送达目标列表COS文件FilePath
success_targets_file_path string 已送达目标列表COS文件FilePath
fail_targets_file_path string 送达失败目标列表COS文件FilePath
excess_targets_file_path string 超额送达目标列表COS文件FilePath
user_id string 员工ID

下载文件内容格式

参数 类型 说明
id string 目标ID,可能是客户ID,可能是客户群ID
t long 时间戳,发送成功的时间戳
frt int 失败原因类型
  • 预计发送目标/未送达目标.列表COS文件格式如下:
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": null}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": null}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": null}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": null}
  • 已送达目标/超额送达目标.列表COS文件格式如下:
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": 1630587613000,"frt": null}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": 1630587613000,"frt": null}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": 1630587613000,"frt": null}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": 1630587613000,"frt": null}
  • 送达失败目标列表COS文件格式如下:
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": 1}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": 1}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": 1}
{"id": "wmDkH9EAAANfvpStGe004AGGaGlo-26w","t": null,"frt": 1}

results matching ""

    No results matching ""