Files
YandexMusic/YandexMusic.API/Requests/Artist/YGetArtistsBuilder.cs
FrigaT 36e28ce3fe
All checks were successful
Release / pack-and-publish (release) Successful in 36s
Полностью переписанное api
2026-04-19 17:00:05 +03:00

13 lines
588 B
C#

using System.Net;
using YandexMusic.API.Models.Artist;
namespace YandexMusic.API.Requests.Artist;
public class YGetArtistsBuilder : YMusicRequestBuilder<List<YArtist>?, IEnumerable<string>>
{
public YGetArtistsBuilder(YandexMusicApi api) : base(api) { }
protected override string Method => WebRequestMethods.Http.Post;
protected override string PathTemplate => "artists";
protected override HttpContent? GetContent(IEnumerable<string> artistIds)
=> new FormUrlEncodedContent(new Dictionary<string, string> { { "artist-Ids", string.Join(",", artistIds) } });
}