返回 Skill 列表
extension
分类: 数据与分析需要 API Key

Oura API Complete Export

使用 Oura OAuth 应用(client id/secret + redirect URI)进行认证,存储并刷新令牌,导出所有可用的 Oura v2 用户集合数据集到...

person作者: fcaruccihubclawhub

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.