返回顶部
r

retarus-sms4a

Send SMS jobs and check SMS delivery status through the Retarus SMS for Applications REST API. Use when Codex or OpenClaw needs to create SMS jobs, inspect per-recipient delivery results for a Retarus job ID, work from the SMS4A OpenAPI schema, or route requests across the `eu`, `de1`, and `de2` datacenters with the required `eu` status fallback to both German datacenters.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
100
下载量
0
收藏
概述
安装方式
版本历史

retarus-sms4a

# Retarus SMS4A ## Overview Use this skill for operational work with the Retarus SMS for Applications API: prepare or validate SMS job payloads, send jobs, and fetch per-recipient status for a `jobId`. Prefer the helper script in `scripts/sms4a_api.py` instead of hand-writing HTTP calls. It already handles Basic Auth, simple payload construction, full-payload file input, datacenter selection, and the `eu` status fallback across `de2` and `de1`. ## Quick Start 1. Resolve credentials from the secret store into one of these supported inputs: - `RETARUS_SMS4A_USERNAME` and `RETARUS_SMS4A_PASSWORD` - `RETARUS_SMS4A_SECRET_FILE` pointing to a JSON or `.env`-style file with `username` and `password` - The default local secret file path `~/.openclaw/secrets/retarus-sms4a.env` or `~/.openclaw/secrets/retarus-sms4a.json` - Explicit `--username` and `--password` flags only for local testing 2. Send a simple SMS job: ```bash python3 scripts/sms4a_api.py send \ --datacenter eu \ --text "Your access code is 123456" \ --recipient +4917600000000 \ --status-requested ``` 3. Check recipient status for a job: ```bash python3 scripts/sms4a_api.py status --job-id J.20221116-102407.583-0lajfsfmoXIZJO93PQ ``` ## Datacenter Rules - Use `eu` as the default send endpoint unless the user explicitly wants `de1` or `de2`. - Do not rely on the `eu` hostname for status lookups. The `eu` endpoint is DNS-balanced across `de1` and `de2`, so a status lookup must try both datacenters. - The `status` command defaults to `--datacenter auto`, which tries `de2` first and then `de1`. - If the user explicitly prefers `de1` or `de2`, still try both datacenters and use the chosen one only as the first lookup target. ## Sending Workflow - For common one-message jobs, pass `--text` and one or more `--recipient` values. - For advanced jobs, pass `--payload-file` with a JSON body matching the OpenAPI `JobRequest` schema. - Use `--dry-run` first if you want to validate payload assembly without sending anything. - Return the created `jobId` and the datacenter that accepted the job. ## Status Workflow - Use `status --job-id ...` to query `GET /sms?jobId=...`. - Return the successful datacenter together with the recipient reports. - If one datacenter returns `404` or `500`, continue with the next datacenter. - If both datacenters fail, report both attempts and their response codes. ## Credential Handling - Never hardcode credentials into the skill files. - Prefer secret-store backed environment injection. - Prefer the standard local secret path `~/.openclaw/secrets/retarus-sms4a.env` for operator-managed credentials on an OpenClaw host. - If a secret file is used, support either: - JSON: `{"username":"...","password":"..."}` - `.env` style: ```dotenv RETARUS_SMS4A_USERNAME=... RETARUS_SMS4A_PASSWORD=... ``` ## Reference - Read `references/api.md` for the server aliases, supported helper-script options, and the subset of the OpenAPI schema this skill uses most often.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 retarus-sms4a-1776118233 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 retarus-sms4a-1776118233 技能

通过命令行安装

skillhub install retarus-sms4a-1776118233

下载 Zip 包

⬇ 下载 retarus-sms4a v1.0.0

文件大小: 8.42 KB | 发布时间: 2026-4-14 12:59

v1.0.0 最新 2026-4-14 12:59
retarus-sms4a 1.0.0

- Initial release of the skill for sending SMS jobs and checking delivery status via the Retarus SMS for Applications REST API.
- Includes helper script `scripts/sms4a_api.py` for job submission, payload validation, status lookup, and datacenter selection with fallback logic.
- Supports credential resolution from environment variables, secret files, or local secret paths.
- Implements automatic status query fallback from EU to both German datacenters for reliability.
- Provides simple command-line workflows for sending messages and retrieving per-recipient status, supporting both basic and advanced use cases.

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

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

p2p_official_large
返回顶部