事务脚本列表

方法:GET

https://network.tingyun.com/network-report-data/script-config/scriptList-data-json-authkey

API依赖关系

detail_id:需要请求套餐列表接口获取对应的套餐ID。

API调用流程图

  1. 调用套餐列表API,获取关键参数id。
  2. 调用事务脚本列表API获取事务脚本列表数据。

请求参数

字段名 类型 必填 选项 描述
authkey String -- 授权码
type Int 2:PC事务 103:手机事务 任务类型
detail_id Int -- 套餐ID

返回参数

字段名 类型 描述
status Int 状态码
data Object 脚本详情数据列表
id Int 脚本ID
script String 脚本文件名称
type Int 任务类型
detailId Int 套餐ID
message String 错误信息
error_code Int 错误码
time Date 日期

错误说明

字段说明 错误信息
authkey PermissionDeniedError

返回示例

{
    "status": 200,
    "data": [
        {
            "id": 161,
            "script": "a40775/txscript_8Nfvt1618196768751.nbs",
            "compatible": 0,
            "type": 103,
            "detailId": 10022
        },
        {
            "id": 201,
            "script": "a40775/txscript_vTBR91618295350419.nbs",
            "compatible": 0,
            "type": 103,
            "detailId": 10022
        },
        {
            "id": 181,
            "script": "a40775/txscript_n8ere1618283104563.nbs",
            "compatible": 0,
            "type": 103,
            "detailId": 10022
        }
    ],
    "message": "",
    "error_code": 0,
    "request": "",
    "time": "2021-04-15 09:26:26"
}
© 2007-2023 北京基调网络股份有限公司 all right reserved,powered by Gitbook本文档更新于: 2023-05-05 14:17

results matching ""

    No results matching ""