using System.Net; using YandexMusic.API.Models.Account; namespace YandexMusic.API.Requests.Account; internal class YGetAuthLoginQRBuilder : YAuthRequestBuilder { public YGetAuthLoginQRBuilder(YandexMusicApi yandex) : base(yandex) { } protected override string Method => WebRequestMethods.Http.Post; protected override string PathTemplate => "auth/new/magic/status/"; protected override HttpContent GetContent(string tuple) { return new FormUrlEncodedContent(new Dictionary { { "csrf_token", Api.Storage.AuthToken.CsfrToken }, { "track_id", Api.Storage.AuthToken.TrackId } }); } }