14 lines
668 B
C#
14 lines
668 B
C#
using System.Net;
|
|
using YandexMusic.API.Models.Account;
|
|
using YandexMusic.API.Requests.Common;
|
|
|
|
namespace YandexMusic.API.Requests.Account;
|
|
|
|
internal class YGetAuthCookiesBuilder : YAuthRequestBuilder<YAccessToken?, object>
|
|
{
|
|
public YGetAuthCookiesBuilder(YandexMusicApi api) : base(api) { }
|
|
protected override string Method => WebRequestMethods.Http.Post;
|
|
protected override string PathTemplate => "1/bundle/oauth/token_by_sessionid";
|
|
protected override HttpContent? GetContent(object _)
|
|
=> new FormUrlEncodedContent(new Dictionary<string, string> { { "client_id", YConstants.XClientId }, { "client_secret", YConstants.XClientSecret } });
|
|
} |