spotify-cli 0.5.0

A command-line interface for Spotify
Documentation
1
2
3
4
5
6
7
8
9
use crate::http::api::SpotifyApi;
use crate::http::client::HttpError;
use crate::http::endpoints::Endpoint;
use serde_json::Value;

/// Get album details by ID
pub async fn get_album(client: &SpotifyApi, album_id: &str) -> Result<Option<Value>, HttpError> {
    client.get(&Endpoint::Album { id: album_id }.path()).await
}