1. 删除权限

DELETE:http://api.xdua.org/rule_id

接口功能:删除rule权限

字段名 字段位置 字段类型 字段说明 举例 可选
apiv head string API版本,默认是1.0.0 1.0.0 可选
Authorization head string 客户端保存的鉴权token Authorization字符串 必选
rule_id path string 权限id rule_example 必选

1.1. 返回数据

成功返回

{
    "error": 0,
    "result": "",
    "reason": "Success"
}

失败返回

{    
    "error":>0,
    "result": "失败供调试的东西",
    "reason": "失败原因"
}
    const dua = await lovearth({
        APP_KEY: "您的app key",
        APP_SECRET: "您的app secret",
    })
    api_name = "删除权限";
    res = await dua.delRule("YI49utyP")
    console.log(res);
    if(res.error == 0){
        console.log(api_name+"成功");
    }else{
        console.log(api_name+"失败 "+res.reason);
    }
}

results matching ""

    No results matching ""