Quản lý hotline

API quản lý hotline.


Lấy danh sách hotline

API lấy danh sách hotline

GET[URL]/api/hotline/getAll

Parameters

Header

AuthorizationAccess token: Bearer

Request

vbot_idStringVBotID khách hàngBắt buộc
project_codeStringMã nhómBắt buộc
json
{
    "vbot_id": "sample string 1",
    "project_code": "sample string 2"
}

Response

statusStringMã trạng thái, 1: Thành công, 0: Thất bại
dataStringMã nhóm thành viên
hotline_nameStringTên hotline
hotline_numberStringSố hotline
messageStringThông tin lỗi
errorIntMã lỗi
json
{
    "status": 1,
    "error": 2,
    "message": "sample string 3",
    "data": [
        {
        "hotline_name": "sample string 1",
        "hotline_number": "sample string 2"
        }
    ]
}

Thêm hotline cho thành viên

API thêm hotline cho thành viên

POST[URL]/api/hotline/member/add

Parameters

Header

AuthorizationAccess token: Bearer

Body

vbot_idStringVBotID khách hàngBắt buộc
project_codeStringMã nhómBắt buộc
member_noStringMã thành viênBắt buộc
hotline_numberStringSố hotlineBắt buộc
allow_callBoolCho phép gọiBắt buộc
start_timeStringThời gian bắt đầuBắt buộc
end_timeStringThời gian kết thúcBắt buộc
json
{
    "vbot_id": "sample string 1",
    "project_code": "sample string 2",
    "member_no": "sample string 3",
    "hotline_number": "sample string 4",
    "allow_call": true,
    "start_time": "sample string 6",
    "end_time": "sample string 7"
}

Response

statusStringMã trạng thái, 1: Thành công, 0: Thất bại
dataBooltrue
messageStringThông tin lỗi
errorIntMã lỗi
json
{
    "status": 1,
    "error": 2,
    "message": "success",
    "data": true
}

Xóa hotline của thành viên

API xóa hotline của thành viên

POST[URL]/api/hotline/member/delete

Parameters

Header

AuthorizationAccess token: Bearer

Body

vbot_idStringVBotID khách hàngBắt buộc
project_codeStringMã nhómBắt buộc
member_noStringMã thành viênBắt buộc
hotline_numberStringSố hotlineBắt buộc
json
{
    "vbot_id": "sample string 1",
    "project_code": "sample string 2",
    "member_no": "sample string 3",
    "hotline_number": "sample string 4"
}

Response

statusStringMã trạng thái, 1: Thành công, 0: Thất bại
dataBooltrue
messageStringThông tin lỗi
errorIntMã lỗi
json
{
    "status": 1,
    "error": 0,
    "message": "success",
    "data": true
}