Полный рефакторинг api. Вынесено отдельно api passport
This commit is contained in:
@@ -8,11 +8,11 @@ namespace YandexMusic.API.Requests.Ugc;
|
||||
internal class YUgcUploadBuilder : YJsonRequestBuilder<YResponse<string>?, (string postTargetLink, byte[] fileBytes)>
|
||||
{
|
||||
public YUgcUploadBuilder(YandexMusicApi api) : base(api) { }
|
||||
protected override string BaseUrl => "";
|
||||
protected override string BaseUrl => "{postTargetLink}";
|
||||
|
||||
protected override string Method => WebRequestMethods.Http.Post;
|
||||
|
||||
protected override string PathTemplate => "{postTargetLink}";
|
||||
protected override string PathTemplate => "";
|
||||
|
||||
protected override Dictionary<string, string> GetSubstitutions((string postTargetLink, byte[] fileBytes) tuple)
|
||||
=> new() { { "postTargetLink", tuple.postTargetLink } };
|
||||
|
||||
Reference in New Issue
Block a user