spotify_cli/endpoints/shows/save_shows_for_current_user.rs
1use crate::http::api::SpotifyApi;
2use crate::http::client::HttpError;
3use crate::http::endpoints::Endpoint;
4use serde_json::Value;
5
6/// Save shows to user's library
7pub async fn save_shows(
8 client: &SpotifyApi,
9 show_ids: &[String],
10) -> Result<Option<Value>, HttpError> {
11 let ids = show_ids.join(",");
12 client
13 .put(&Endpoint::SavedShowsIds { ids: &ids }.path())
14 .await
15}