[GH-ISSUE #327] Parity: Analytics direct get endpoints #98

Closed
opened 2026-02-26 21:33:22 +03:00 by kerem · 1 comment
Owner

Originally created by @rudrankriyam on GitHub (Jan 30, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/327

Overview

Add missing analytics direct-get endpoints for reports, instances, and segments, plus relationship access for instances.

Scope (OpenAPI resources)

  • GET /v1/analyticsReportInstances/{id}
  • GET /v1/analyticsReportSegments/{id}
  • GET /v1/analyticsReports/{id}
  • GET /v1/analyticsReports/{id}/relationships/instances
  • GET /v1/analyticsReportInstances/{id}/relationships/segments

Proposed CLI

Top-level group:

  • asc analytics ...

New/expanded subcommands:

  • analytics reports get --report-id ID
  • analytics instances get --instance-id ID
  • analytics segments get --segment-id ID
  • analytics reports relationships --report-id ID --type instances
  • analytics instances relationships --instance-id ID --type segments

Examples:

  • asc analytics reports get --report-id REPORT_ID
  • asc analytics instances get --instance-id INSTANCE_ID
  • asc analytics segments get --segment-id SEGMENT_ID

Flag patterns

Common:

  • --report-id, --instance-id, --segment-id, --output, --pretty

Output

  • JSON minified by default
  • --pretty for JSON
  • --output table/markdown for list commands

Detailed TODO

  • Add client methods for report/instance/segment get
  • Add client methods for relationships (instances/segments)
  • Implement CLI subcommands listed above
  • Add cmdtests + HTTP client tests (mocked)

Acceptance criteria

  • Direct get works for reports/instances/segments
  • Relationship endpoints accessible
  • JSON-first output preserved

Tests

  • Flag validation tests
  • HTTP client tests for get/relationships

Implementation notes

  • Add client methods in internal/asc/analytics.go
  • Add CLI commands in internal/cli/analytics
  • Follow patterns from existing analytics list commands
Originally created by @rudrankriyam on GitHub (Jan 30, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/327 # Overview Add missing analytics direct-get endpoints for reports, instances, and segments, plus relationship access for instances. # Scope (OpenAPI resources) - `GET /v1/analyticsReportInstances/{id}` - `GET /v1/analyticsReportSegments/{id}` - `GET /v1/analyticsReports/{id}` - `GET /v1/analyticsReports/{id}/relationships/instances` - `GET /v1/analyticsReportInstances/{id}/relationships/segments` # Proposed CLI Top-level group: - `asc analytics ...` New/expanded subcommands: - `analytics reports get --report-id ID` - `analytics instances get --instance-id ID` - `analytics segments get --segment-id ID` - `analytics reports relationships --report-id ID --type instances` - `analytics instances relationships --instance-id ID --type segments` Examples: - `asc analytics reports get --report-id REPORT_ID` - `asc analytics instances get --instance-id INSTANCE_ID` - `asc analytics segments get --segment-id SEGMENT_ID` # Flag patterns Common: - `--report-id`, `--instance-id`, `--segment-id`, `--output`, `--pretty` # Output - JSON minified by default - `--pretty` for JSON - `--output table/markdown` for list commands # Detailed TODO - [ ] Add client methods for report/instance/segment get - [ ] Add client methods for relationships (instances/segments) - [ ] Implement CLI subcommands listed above - [ ] Add cmdtests + HTTP client tests (mocked) # Acceptance criteria - [ ] Direct get works for reports/instances/segments - [ ] Relationship endpoints accessible - [ ] JSON-first output preserved # Tests - Flag validation tests - HTTP client tests for get/relationships # Implementation notes - Add client methods in `internal/asc/analytics.go` - Add CLI commands in `internal/cli/analytics` - Follow patterns from existing analytics list commands
kerem closed this issue 2026-02-26 21:33:23 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Jan 30, 2026):

Closed by #343 (merged).

<!-- gh-comment-id:3825982545 --> @rudrankriyam commented on GitHub (Jan 30, 2026): Closed by #343 (merged).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#98
No description provided.