13 lines
642 B
C#
13 lines
642 B
C#
using System.Net;
|
|
using YandexMusic.API.Models.Account;
|
|
|
|
namespace YandexMusic.API.Requests.Account;
|
|
|
|
public class YGetAuthCaptchaBuilder : YAuthRequestBuilder<YAuthCaptcha?, object>
|
|
{
|
|
public YGetAuthCaptchaBuilder(YandexMusicApi api) : base(api) { }
|
|
protected override string Method => WebRequestMethods.Http.Post;
|
|
protected override string PathTemplate => "registration-validations/textcaptcha";
|
|
protected override HttpContent? GetContent(object _)
|
|
=> new FormUrlEncodedContent(new Dictionary<string, string> { { "csrf_token", Api.Storage.AuthToken.CsfrToken }, { "track_id", Api.Storage.AuthToken.TrackId } });
|
|
} |