支持

/v1/support

使用 support 节点获取 WhatsApp Business API 客户端的使用帮助。请参阅联系客户服务,详细了解如何开立直接支持请求单。

检索

对于 support 节点的 API 调用会返回相关信息,以便支持团队用来帮助您解决问题。

示例

GET /v1/support

使用 cURL

curl  https://your-webapp-hostname:your-webapp-port/v1/support \
  -H 'Authorization: Bearer your-auth-token' 

成功的响应会包含与您的 WhatsApp Business API 客户端相关的数据。响应中的字段可能会视您的具体安装情况而异:

单一实例

{
    "support": {   
        "context": "healthcheck", # context of the API
        "db_engine": "MYSQL"
        "db_info": [ database-driver-version ],
        "debug_info": "business-phone-number", #phone number if registered, otherwise, unregistered
        "description": "whatsapp-build-version",
        "device_iso8601": "current-timestamp",
  
        "e2e": { # encryption debug info
            "identity_timestamp": "id-timestamp",
            "registration_id": registration-id
        },
  
        "env": [ client-env-variables ],
        "expire_timestamp": "2018-09-27T14:26:07", # app build version expires timestamp 
        "free_space_data": 9223372036853727000, # bytes available on the data directory  
        "free_space_logs": 14269902848, # bytes available on the log directory
        "free_space_media_incoming": 9223372036853727000, # bytes available on the media incoming directory
        "free_space_media_outgoing": 9223372036853727000, # bytes available on the media outgoing directory
        "lc": "en", # lowercase, two-letter ISO 639 language code, ZZ if code is unknown
        "lg": "US", # uppercase, two or three-letter ISO 3166 country code, ZZ if code is unknown
        "multi_connect": false, # specifies whether current client is multiconnect enabled 
        "os_name": "ubuntu-x86_64", # operating system name 
        "os_version": "16.04", # operating system version

        "schema": { # database schema versions
            "axolotl": 1,
            "callback": 2,
            "cluster": 3,
            "config": 4,
            "contact": 5,
            "jobqueue": 6,
            "message": 7
        },
        "socket_conn": "UP | DN" | "SC" | "UP receiving offline" | "UNK", # see options below
        "version": "build-version"    
    }
}

高可用性/多连接

{
    "support": {
        "your-hostname1:your-container-id1": {
          "multi_connect" : true,
          "role": "primary_master | secondary_master | coreapp",
          "shards": [ [your-owned-shard-id, your-owned-shard-id], ...],
          "context": "healthcheck",
          "db_engine": "MYSQL | PGSQL",
          "db_info": [ ... ],
          "debug_info": "enterprise phone number",
          "description": "build information",
          ...
        },
        "your-hostname2:your-container-id2": {
          "multi_connect" : true,
          "role": "primary_master | secondary_master | coreapp",
          "shards": [ [your-owned-shard-id, your-owned-shard-id], ...],
          "context": "healthcheck",
          "db_engine": "MYSQL | PGSQL",
          "db_info": [ ... ],
          "debug_info": "enterprise phone number",
          "description": "build information",
          ...
        },
    }
}

参数

socket_conn 字段

socket_conn 字段会提供 WhatsApp 服务器连接的当前状态。

名称描述

DN

已与 WhatsApp 服务器断开连接。

UP

已连接至 WhatsApp 服务器。

SC

正在连接至 WhatsApp 服务器。

UP receiving offline

正在连接至 WhatsApp 服务器并接收服务器发送的离线消息。

UNK

连接状态未知。

shards 字段

  • 在高可用性设置中,只有一个核心应用可以同时拥有控制分片 (-1) 和普通分片 (0)。其分片字段为 [[-1, -1], [0, 0]],而其他节点的分片字段则为 []
  • 在多连接设置中,主 Master 拥有控制分片 (-1),并且其分片字段为 [[-1, -1]]。如果核心应用拥有分片,则其分片字段为 [[owned-shard-id,owned shard id]]。目前,一个核心应用只能同时拥有 1 个分片。

role 字段

名称描述

role

高可用性/多连接设置中的容器身份。


值:primary_mastersecondary_mastercoreapp