返回顶部
p

perpetuaPerpetua OAuth代理

OAuth proxy for calling external APIs (Oura, Google Calendar, etc.) via Perpetua.sh hosted API using a single API key. Use when fetching Oura data, Google Calendar events, or managing OAuth connections.

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

perpetua

Perpetua 技能(托管版)

概述

使用 Perpetua.sh 托管 API 作为默认路径:

  • - 基础 URL:https://www.perpetua.sh
  • API 路由:/api/*
  • 认证:Authorization: Bearer $PERPETUAAPIKEY

加载密钥:

bash
op run --env-file=$HOME/.openclaw/secrets.env --

凭证

通过任意密钥源(1Password、CI、.env、密钥管理器)的环境变量设置 API 密钥:

bash
export PERPETUAAPIKEY=

核心端点(托管版)

bash

连接状态摘要


curl -s https://www.perpetua.sh/api/status \
-H Authorization: Bearer $PERPETUAAPIKEY

活跃连接

curl -s https://www.perpetua.sh/api/connections \ -H Authorization: Bearer $PERPETUAAPIKEY

提供商

curl -s https://www.perpetua.sh/api/providers \ -H Authorization: Bearer $PERPETUAAPIKEY

代理调用模式

bash
GET https://www.perpetua.sh/api/proxy/:provider/:path
Authorization: Bearer $PERPETUAAPIKEY

可选:使用 ?account=default 进行显式账户选择。

Oura 示例

除非明确需要,否则避免使用大型端点(daily_activity、详细的 sleep)。

bash

每日睡眠


curl -s https://www.perpetua.sh/api/proxy/oura/v2/usercollection/dailysleep?startdate=YYYY-MM-DD&end_date=YYYY-MM-DD&account=default \
-H Authorization: Bearer $PERPETUAAPIKEY | jq .

每日准备度

curl -s https://www.perpetua.sh/api/proxy/oura/v2/usercollection/dailyreadiness?startdate=YYYY-MM-DD&end_date=YYYY-MM-DD&account=default \ -H Authorization: Bearer $PERPETUAAPIKEY | jq .

锻炼

curl -s https://www.perpetua.sh/api/proxy/oura/v2/usercollection/workout?startdate=YYYY-MM-DD&enddate=YYYY-MM-DD&account=default \ -H Authorization: Bearer $PERPETUAAPIKEY | jq .

Google 日历示例

bash

即将到来的主日历事件


curl -s https://www.perpetua.sh/api/proxy/gcal/calendars/primary/events?account=default&maxResults=10&orderBy=startTime&singleEvents=true&timeMin=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
-H Authorization: Bearer $PERPETUAAPIKEY | jq [.items[] | {summary, start}]

日历列表

curl -s https://www.perpetua.sh/api/proxy/gcal/users/me/calendarList?account=default \ -H Authorization: Bearer $PERPETUAAPIKEY | jq .

连接管理(托管版)

bash

启动提供商的 OAuth 流程


curl -s -X POST https://www.perpetua.sh/api/auth/connect/:provider/start \
-H Authorization: Bearer $PERPETUAAPIKEY \
-H Content-Type: application/json \
-d {account:default} | jq .authUrl

故障排除

  • - 401 → API 密钥错误或已过期
  • 提供商路由上的 403/404 → 缺少连接或提供商/账户错误
  • 5xx → 托管服务问题;重试和/或通知 Daniel

本地 OSS 说明

本地 http://localhost:3001 仅用于 OSS 开发。此工作区中的默认操作路径是托管的 Perpetua.sh。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 perpetua-1776312868 技能

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

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

通过命令行安装

skillhub install perpetua-1776312868

下载

⬇ 下载 perpetua v1.0.0(免费)

文件大小: 1.98 KB | 发布时间: 2026-4-16 18:20

v1.0.0 最新 2026-4-16 18:20
- Initial release of the Perpetua skill.
- Provides an OAuth proxy for external APIs (Oura, Google Calendar) via a single API key from Perpetua.sh.
- Documentation covers API usage, connection management, example requests, and troubleshooting.
- Hosted API at https://www.perpetua.sh is the default operational path.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部