soundcloud-rs 0.7.0

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

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

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)
    }
}