Unofficial client for Yandex.Music API written in C#/.NET
You can find package on NuGet
dotnet add package YandexMusicApi.Client
Install-Package YandexMusicApi.Client
// with authorization token:
services.AddAuthorizedYandexMusicApiClient("token");
// else
services.AddGuestYandexMusicApiClient();
// with authorization token:
var client = new YandexMusicClient(RestClient.Authorized("token"));
// else
var client = new YandexMusicClient();
using System;
using YandexMusicApi.Client;
class Program
{
static async Task Main()
{
var client = new YandexMusicClient();
var track = await client.Tracks.GetAsync("trackId"); // get track by id
var albums = await client.Albums.SearchAsync("album title"); // search for albums by title
var genres = await client.Genres.GetAsync(); // get all genres
}
}
Coming soon...