Lấy cấu hình tổng đài

API này dùng để lấy thông tin cấu hình tổng đài

Lưu ý:

  • Đối với các API sử dụng cho Shop thì API_KEY: <api_key>.Thông tin base_url của Shop

  • Đối với các API sử dụng cho Partner thì API_KEY: <shop_key>.Thông tin base_url của Partner

GetDriverConfig

post
Body
objectOptional
Responses
200
A successful response
application/json
post
POST /GetDriverConfig HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

A successful response

{
  "connection_id": "text",
  "push_head": "text",
  "push_id": "text",
  "sip_domain": "text",
  "sip_port": 1,
  "transport": "text",
  "version": "text",
  "websocket_url": "text"
}

Request:

curl --location '$BASE_URL.Etelecom/GetDriverConfig' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{}'

Response:

{
  "connection_id": "string",
  "push_head": "string",
  "push_id": "string",
  "sip_domain": "string",
  "sip_port": 0,
  "transport": "string",
  "version": "string",
  "websocket_url": "string"
}

Cấu trúc thuộc tính dữ liệu trả về:

Tham số
Kiểu dữ liệu
Mô tả

connection_id

string

ID phiên kết nối

push_head

string

Phương thức đẩy thông báo

push_id

string

ID đẩy thông báo

sip_domain

string

Domain tổng đài

sip_port

int

Port tổng đài

transport

string

Thông tin port kết nối

version

string

Phiên bản tổng đài

websocket_url

string

Link kết nối websocket

Last updated