spotify_cli/endpoints/chapters/
get_chapter.rs

1use crate::http::api::SpotifyApi;
2use crate::http::client::HttpError;
3use crate::http::endpoints::Endpoint;
4use serde_json::Value;
5
6/// Get chapter details by ID
7pub async fn get_chapter(
8    client: &SpotifyApi,
9    chapter_id: &str,
10) -> Result<Option<Value>, HttpError> {
11    client
12        .get(&Endpoint::Chapter { id: chapter_id }.path())
13        .await
14}