微信接口分析

接口概览

接口列表

POST /wxapi/list

请求参数:

请求参数 类型 必选参数 说明
mpId Number 小程序ID
timePeriod Number 参数为默认为30分钟
endTime String 截止时间。格式yyyy-MM-dd HH:mm,例如(2018-02-07 17:39)

返回结果:

[
    {
        "apiName": "scanCode",
        "displayApiName": "扫码(scanCode)",
        "apiFailCount": 3,
        "apiCallCount": 3,
        "apiSuccessRate": 0.0, // 成功率
        "apiFailUserCount": 1, // 失败用户数
        "apiInfluenceUserCount": 1 // 影响用户数
    },
    ...
]

接口详情

接口详情概览信息

POST /wxapi/detail

请求参数:

请求参数 类型 必选参数 说明
mpId Number 小程序ID
apiName String 接口名称
timePeriod Number 参数为默认为30分钟
endTime String 截止时间。格式yyyy-MM-dd HH:mm,例如(2018-02-07 17:39)

返回结果:

{
    "apiName": "scanCode",
    "displayApiName": "扫码(scanCode)",
    "apiFailCount": 3,
    "apiCallCount": 3,
    "apiCancelCount": 0,
    "apiSuccessRate": 0.0,
    "apiFailUserCount": 1,
    "apiInfluenceUserCount": 1
}

接口调用趋势图

POST /chart/api-trend

请求参数:

请求参数 类型 必选参数 说明
mpId Number 小程序ID
apiName String 接口名称
timePeriod Number 参数为默认为30分钟
endTime String 截止时间。格式yyyy-MM-dd HH:mm,例如(2018-02-07 17:39)

返回数据: (Highcharts图通用返回结果)

接口trace列表

POST /wxapi/trace-list

请求参数:

请求参数 类型 必选参数 说明
mpId Number 小程序ID
apiName String 接口名称
timePeriod Number 参数为默认为30分钟
endTime String 截止时间。格式yyyy-MM-dd HH:mm,例如(2018-02-07 17:39)
statusFilter Number 指定过滤条件。 1: 成功 2: 失败 3: 取消

返回数据:

{
    "timestamp": "2019-11-15 11:18",
    "id": "IpERbW4Bw-wCxOz_rEu9",
    "apiName": "scanCode",
    "apiSuccessCount": 0,
    "apiFailCount": 1,
    "apiCancelCount": 0,
    "apiCallCount": 0,
    "sid": "7cfcb6c9-3edf-4d9d-a6f2-8ed172217e45",
    "uid": "5847de28-2b35-4d6e-b977-ff54a685c7d4",
    "ip": "192.168.5.149",
    "apiStatus": 2, // 1: 成功 2: 失败 3: 取消
    "failMessage": "{\"errMsg\":\"scanCode:fail\"}"
}
© 2007-2023 北京基调网络股份有限公司 all right reserved,powered by Gitbook本文档更新于: 2023-12-27 15:43

results matching ""

    No results matching ""