Crate spotify_genres

Source

Functions§

  • Authenticates a Spotify client with the spotify api. client_id and client_secret can be gathered from spotify’s developer workspace by registering an app.
  • Calculates a histogram of the genres in the playlist with id playlist. Returns a vector of pairs (genre_name: String, amount: u64). Needs a Spotify client.