soundcloud-rs 0.4.0

A simple Rust client for the SoundCloud API
Documentation
1
2
3
4
5
6
7
8
9
10
use std::error::Error;

use crate::{models::query::AlbumQuery, response::Playlists, Client};

impl Client {
    pub async fn search_albums(&self, query: Option<&AlbumQuery>) -> Result<Playlists, Box<dyn Error>> {
        let resp: Playlists = self.get("search/albums", query).await?;
        Ok(resp)
    }
}