呼入黑名单

设置呼入黑名单

List Block

GET https://api.zycoo.net/coocenter-api/blacklist/index

获取所有黑名单号码

Headers

{
  "status": "success",
  "data": [
    "111"
  ]
}
curl -X GET "https://192.168.12.185:8080/coocenter-api/blacklist/index" -H "accept: application/json"

Delete Block

DELETE https://api.zycoo.net/coocenter-api/blacklist/delete

删除指定黑名单号码

Headers

Request Body

{
  "status": "success",
  "message": "Key deleted successfully"
}
curl -X DELETE "http://localhost:8000/coocenter-api/blacklist/delete" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "number=123456"

POST https://api.zycoo.net/coocenter-api/blacklist/create

添加指定号码到黑名单

Request Body

{
  "status": "success",
  "message": "Updated database successfully"
}
curl -X POST "http://localhost:8000/coocenter-api/blacklist/create" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "number=123123"

Last updated