13 lines
590 B
C#
13 lines
590 B
C#
using System.Net;
|
|
using YandexMusic.API.Models.Artist;
|
|
|
|
namespace YandexMusic.API.Requests.Artist;
|
|
|
|
internal 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) } });
|
|
} |