use crate::http::api::SpotifyApi;
use crate::http::client::HttpError;
use crate::http::endpoints::Endpoint;
use serde_json::Value;
pub async fn follow_artists_or_users(
client: &SpotifyApi,
entity_type: &str, ids: &[String],
) -> Result<Option<Value>, HttpError> {
let ids_str = ids.join(",");
client
.put(
&Endpoint::FollowArtistsOrUsers {
entity_type,
ids: &ids_str,
}
.path(),
)
.await
}