# 开放接口API说明-授权变更记录接口

# 查询授权变更记录

请求方式: POST(HTTPS
请求地址: https://openapi.waiqin365.com/api/authorization/v1/queryAuthorizationChange/{ openid }/{ timestamp }/{ digest }/{ msg_id } 在线调试
请求示例:

{
  "change_platform": "1",
  "change_event_type": "user_info_modified",
  "change_time_start": "2020-12-31",
  "change_time_end": "2099-12-31"
} 
说明: 本示例仅供参考。

参数说明:

参数 类型 必填 说明
change_platform VARCHAR(32) 根据授权变更平台查询1:订货365小程序 2:外勤365小程序
change_event_type VARCHAR(32) 根据授权变更类型查询user_info_modified:获取授权,user_authorization_revoke:撤回授权
change_time_start VARCHAR(10) 根据授权变更时间起查询。格式:yyyy-MM-dd
change_time_end VARCHAR(10) 根据授权变更时间止查询。格式:yyyy-MM-dd

响应示例:

{
    "return_code": "0", 
    "return_msg": "响应信息",
    "msg_id": "{ msg_id }",
    "response_data": "<<DATA>>"
}

数据DATA示例:

[
    {
        "id": "6654705063182845537",
        "status": "1",
        "creator_id": "999",
        "create_time": "2021-12-27 09:49:09.452791",
        "modifyier_id": "998",
        "modify_time": "2021-12-27 09:49:09.452791",
        "change_platform": "1",
        "change_people_id": "5355434788216983280",
        "change_people_name": "张三",
        "change_people_mobile": "17512575280",
        "change_event_type": "user_authorization_revoke",
        "change_info": "手机号",
        "change_time": "2021-07-27 12:17:44"
    },
    {
        "id": "6013448542982957553",
        "status": "1",
        "creator_id": "999",
        "create_time": "2021-12-27 09:49:09.452791",
        "modifyier_id": "998",
        "modify_time": "2021-12-27 09:49:09.452791",
        "change_platform": "2",
        "change_people_id": "5355434788216983280",
        "change_people_name": "李四",
        "change_people_mobile": "17512575280",
        "change_event_type": "user_info_modified",
        "change_info": "蓝牙",
        "change_time": "2021-07-27 12:17:44"
    }   
]

参数说明:

参数 类型 必填 说明
id INT8 ID
status VARCHAR(1) 状态
creator_id INT8 创建人ID
create_time TIMESTAMP 创建时间
modifyier_id INT8 修改人ID
modify_time TIMESTAMP 修改时间
change_platform VARCHAR(32) 授权变更平台 1:订货365小程序 2:外勤365小程序
change_people_id VARCHAR(32) 授权变更人在365中的id
change_people_name VARCHAR(32) 授权变更人
change_people_mobile VARCHAR(32) 授权变更人手机号
change_event_type VARCHAR(32) 授权变更类型 user_info_modified:获取授权,user_authorization_revoke:撤回授权
change_info VARCHAR(32) 授权变更信息
change_time TIMESTAMP 授权变更时间。格式:yyyy-MM-dd HH:mm:ss