yamuse 0.2.0

typed async client for the yandex music api: catalogue, likes, playlists, radio, lossless downloads and ynison realtime
Documentation
//! production-credit endpoints.

use crate::client::Client;
use crate::error::Result;
use crate::models::Credits;
use crate::params::Params;

impl Client {
    /// fetch the production credits of a track.
    ///
    /// `GET /tracks/{id}/credits`
    pub async fn track_credits(&self, track_id: impl std::fmt::Display) -> Result<Credits> {
        self.get(&format!("/tracks/{track_id}/credits"), Params::new())
            .await
    }

    /// fetch the production credits of a clip.
    ///
    /// `GET /clips/{id}/credits`
    pub async fn clip_credits(&self, clip_id: impl std::fmt::Display) -> Result<Credits> {
        self.get(&format!("/clips/{clip_id}/credits"), Params::new())
            .await
    }
}