360 Secure SkillHub
360 安全技能中心

Oura API Complete Export

通过 OAuth 客户端凭据完成 Oura 授权,保存并自动刷新访问令牌,分页拉取 Oura v2 usercollection 全部数据集,按端点写入本地 JSON 文件;单个端点失败时继续导出并记录错误,便于后续分析或 ETL 使用。

分类:效率
fcarucci
fcarucci
热度 16.03
最近更新 2026-05-11 17:28:11

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add fcarucci/oura-api-complete-export
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
oura-api-complete-export
description
Authenticate with an Oura OAuth app (client id/secret + redirect URI), store and refresh tokens, and export all available Oura v2 usercollection datasets to JSON files. Use when the user asks for full Oura backup/raw export, end-to-end Oura auth setup, or repeatable data pulls for analysis/ETL.

Oura API Complete Export

Use this skill to set up OAuth auth for Oura and export all available Oura data into JSON.

Folder structure

  • SKILL.md
  • README.md
  • scripts/auth_oura_oauth.py
  • scripts/export_oura_data.py
  • scripts/run_full_export.sh
  • references/endpoints.md

Workflow

  1. Run OAuth auth once:
    python3 scripts/auth_oura_oauth.py --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET> --redirect-uri http://localhost:8765/callback
    
  2. Run export:
    python3 scripts/export_oura_data.py --start 2020-01-01 --end $(date +%F) --out ./oura_export
    
  3. For convenience:
    ./scripts/run_full_export.sh 2020-01-01 $(date +%F) ./oura_export
    

Behavior

  • Refresh token automatically before/when needed.
  • Follow paginated endpoints automatically.
  • Continue export on per-endpoint failures and log errors.
  • Keep raw payloads in endpoint-specific JSON files for downstream tools.