Expand description
Spotify’s plug-in to the generic service lifecycle.
Everything Spotify-specific lives here: the OAuth 2.0 PKCE
credential shape (a public client — no client_secret), the flags
that let the operator paste in a pre-minted refresh token (or run
the interactive loopback flow), and the GET /me call that
validates a credential set. The generic plumbing (flag parsing,
path resolution, JSON envelopes, human banners, keychain I/O
sequencing) lives in src/cli/lifecycle.rs and is shared with
every other service.
See docs/services.md#adding-a-new-service for the full recipe.
Structs§
- Create
Args - Spotify
Lifecycle - Spotify
Secrets - Spotify’s credential shape — OAuth 2.0 “Authorization Code with
PKCE” public client: just
client_id+ a long-livedrefresh_token. No client secret is issued or accepted by Spotify for PKCE clients. Both pieces are persisted in the OS keychain; the access token is re-minted at each CLI invocation.