musixmatch-rs

Crates.io Docs.rs License

This repository offers a wide range of functionalities that can be leveraged to build music applications requiring access to this musicmatch. By utilizing this Rust implementation, developers can seamlessly integrate MusixMatch API capabilities into their Rust projects, enabling the development of powerful and feature-rich music applications.

About

The MusixMatch API is a comprehensive service that provides access to music metadata, lyrics, and album art. It offers a wide range of functionalities, including:

By leveraging the MusixMatch API, developers can build music applications that require access to this rich set of music-related data. The musixmatch-rs crate provides a convenient Rust implementation for interacting with the MusixMatch API, enabling seamless integration into Rust projects.

For more information about the MusixMatch API and its capabilities, please refer to the MusixMatch API Documentation.

Features

Installation

Add this to your Cargo.toml for default features:

toml [dependencies] musixmatch = "0.1.0" # Note version at time of writing

With the marocs feature enabled, you can use default arguments for methods in the MusixAbgleich API. This allows you to omit certain parameters and have them set to default values automatically (None).

toml [dependencies] musixmatch = { version = "0.1.0", features = ["marcos"] } # Note version at time of writing

Usage

To use the MusixMatch API, you need an API key. Follow these steps to obtain an API key:

Note : The exact steps and process may vary slightly depending on any updates or changes made to the MusixMatch Developer Portal. Please refer to the official documentation provided by MusixMatch for the most up-to-date instructions on obtaining an API key.

```rust use musixmatch::MusixAbgleich;

fn main() { // Create an instance of MusixAbgleich let musicabgleich = MusixAbgleich::new("yourapikey",||{ // Custom error handler for handling status codes // Look below for possible status codes from music match });

// Call methods with default arguments
let artists = musicabgleich.top_artists_by_country(Some("US"), None, None);
println!("{:?}", artists);

//Or when using marcos feature
let marco_feature_artist = top_artists_by_country!(musicabgleich,country = "US");
println!("{:?}", marco_feature_artist);

} ```

Please note that the examples provided here are simplified and serve as a starting point. For comprehensive documentation of the crate, please visit the crate documentation for a better understanding of the crate's functionalities and APIs.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.