EasBnB Open
  1. API
EasBnB Open
  • 自定义OTA接入OpenAPI说明
  • API
    • 订单创建
      POST
    • 订单更新
      POST
    • 订单取消
      POST
    • 查询会话列表
      POST
    • 查询消息
      POST
    • 接收消息
      POST
  • WebHook
    • 查询房间列表
      POST
    • 查询日历可用性和价格
      POST
    • 设置日历价格、可用性
      POST
    • 查询订单详情
      POST
    • 发送消息
      POST
  • 数据模型
    • Order
    • Account
    • User
    • Conv
    • Msg
    • Room
    • RoomDay
  1. API

接收消息

开发中
POST
https://pms.easbnb.com/api/o1/IncomingService_OnMsgReceived

请求参数

Header 参数

Body 参数application/json

示例
{
    "conv": {
        "id": "xxxxx",
        "creator": {
            "id": "xxxxx",
            "name": "name",
            "avatar": "avatar_url",
            "role": 1
        },
        "orderId": "xxxx",
        "roomId": "xxxx",
        "startDate": "yyyy-mm-dd",
        "endDate": "yyyy-mm-dd",
        "tenantCount": 0
    },
    "msg": {
        "id": "xxxxx",
        "convId": "xxxxx",
        "content": "content",
        "kind": 0,
        "sender": {
            "id": "xxxxx",
            "name": "sender",
            "avatar": "avatar_url",
            "role": 1
        }
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://pms.easbnb.com/api/o1/IncomingService_OnMsgReceived' \
--header 'access-token: xxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "conv": {
        "id": "xxxxx",
        "creator": {
            "id": "xxxxx",
            "name": "name",
            "avatar": "avatar_url",
            "role": 1
        },
        "orderId": "xxxx",
        "roomId": "xxxx",
        "startDate": "yyyy-mm-dd",
        "endDate": "yyyy-mm-dd",
        "tenantCount": 0
    },
    "msg": {
        "id": "xxxxx",
        "convId": "xxxxx",
        "content": "content",
        "kind": 0,
        "sender": {
            "id": "xxxxx",
            "name": "sender",
            "avatar": "avatar_url",
            "role": 1
        }
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2025-03-26 02:44:53
上一页
查询消息
下一页
查询房间列表
Built with