spotify-rs 0.4.1

A Rust wrapper for the Spotify API.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{auth::AuthFlow, error::Result, model::recommendation::Genres};

use super::Client;

pub async fn get_genre_seeds(spotify: &Client<impl AuthFlow>) -> Result<Vec<String>> {
    spotify
        .get::<(), _>("/recommendations/available-genre-seeds".to_owned(), None)
        .await
        .map(|g: Genres| g.genres)
}