返回顶部
h

hostexHostex管理

Hostex (hostex.io) OpenAPI v3.0 skill for querying and managing vacation rental properties, room types, reservations, availability, listing calendars, guest messaging, reviews, and webhooks via the Hostex API. Use when you need to integrate with Hostex API using a Hostex PAT (Hostex-Access-Token / HostexAccessToken) or when you need safe, intent-level API calls (read-only by default, optional write operations with explicit confirmation).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
1,736
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

hostex

Hostex API 技能 (Node)

认证 (PAT)

  • - 设置环境变量:HOSTEXACCESSTOKEN
  • 请求使用请求头:Hostex-Access-Token:
  • OpenAPI 安全方案名称:HostexAccessToken

默认建议: 使用只读 PAT。

日期/时区

  • - 所有日期参数格式为 YYYY-MM-DD
  • 房源时区解释日期(无 UTC 时间戳)

OpenAPI 权威来源

稳定的 OpenAPI JSON:

  • - https://hostex.io/open_api/v3/config.json

使用 scripts/openapi-sync.mjs 将本地副本缓存到 references/openapi.json。

快速命令(脚本)

所有脚本均需 HOSTEXACCESSTOKEN。

只读(安全)

列出房源:
bash
node skills/hostex/scripts/hostex-read.mjs list-properties --limit 20

列出预订(按入住日期范围):
bash
node skills/hostex/scripts/hostex-read.mjs list-reservations --start-check-in-date 2026-02-01 --end-check-in-date 2026-02-28 --limit 20

列出预订(按预订代码):
bash
node skills/hostex/scripts/hostex-read.mjs list-reservations --reservation-code 0-1234567-abcdef

获取可用性:
bash
node skills/hostex/scripts/hostex-read.mjs get-availabilities --start 2026-02-10 --end 2026-02-20 --property-id 123

写入(受保护)

写入操作默认禁用,除非:

  • - HOSTEXALLOWWRITES=true

并且传递 --confirm 参数。

发送消息:
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs send-message --conversation-id 123 --text 你好! --confirm

更新房源价格(单日期范围示例):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-listing-prices \
--channel-type airbnb \
--listing-id 456 \
--start 2026-02-10 \
--end 2026-02-15 \
--price 199 \
--confirm

更新房源价格(单次请求多日期范围):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-listing-prices \
--channel-type booking_site \
--listing-id 100541-10072 \
--prices 2026-02-03..2026-02-05:599,2026-02-06..2026-02-07:699,2026-02-08..2026-02-09:599 \
--confirm

创建预订(直接预订)(示例):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs create-reservation \
--property-id 123 \
--custom-channel-id 77 \
--check-in-date 2026-02-10 \
--check-out-date 2026-02-12 \
--guest-name 爱丽丝 \
--currency USD \
--rate-amount 200 \
--commission-amount 0 \
--received-amount 200 \
--income-method-id 3 \
--confirm

更新房源可用性(关闭/开放)(示例):
bash

关闭某房源在日期范围内的可用性


HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-availabilities \
--property-ids 11322075 \
--available false \
--start-date 2026-02-03 \
--end-date 2027-02-02 \
--confirm

操作安全护栏(强制要求)

执行任何写入操作时:
1) 总结变更内容(谁/什么/何时/多少)。
2) 要求用户明确确认(例如 CONFIRM)。
3) 如果可用,优先使用 --dry-run。

备注

  • - 分页:端点通常接受 offset + limit(最大限制为 100)。
  • 切勿在日志中打印令牌;脚本会自动隐藏密钥。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 hostex-1776368331 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 hostex-1776368331 技能

通过命令行安装

skillhub install hostex-1776368331

下载

⬇ 下载 hostex v0.1.1(免费)

文件大小: 20.23 KB | 发布时间: 2026-4-17 14:47

v0.1.1 最新 2026-4-17 14:47
- Added support and documentation for updating listing prices with multiple date/price ranges in a single request.
- Added support and example for updating property availabilities (close/open) via the script interface.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部