13 lines
663 B
C#
13 lines
663 B
C#
using System.Net;
|
|
using YandexMusic.API.Models.Account;
|
|
|
|
namespace YandexMusic.API.Requests.Account;
|
|
|
|
internal class YGetAuthLoginUserBuilder : YAuthRequestBuilder<YAuthTypes?, (string token, string login)>
|
|
{
|
|
public YGetAuthLoginUserBuilder(YandexMusicApi api) : base(api) { }
|
|
protected override string Method => WebRequestMethods.Http.Post;
|
|
protected override string PathTemplate => "registration-validations/auth/multi_step/start";
|
|
protected override HttpContent? GetContent((string token, string login) tuple)
|
|
=> new FormUrlEncodedContent(new Dictionary<string, string> { { "csrf_token", tuple.token }, { "login", tuple.login } });
|
|
} |