public async Task<ITag> GetGalleryTagAsync(string tag, GalleryTagSortOrder? sort = GalleryTagSortOrder.Viral,
TimeWindow? window = TimeWindow.Week, int? page = null)
{
if (string.IsNullOrWhiteSpace(tag))
throw new ArgumentNullException(nameof(tag));
sort = sort ?? GalleryTagSortOrder.Viral;
window = window ?? TimeWindow.Week;
var sortValue = $"{sort}".ToLower();
var windowValue = $"{window}".ToLower();
var url = $"gallery/t/{tag}/{sortValue}/{windowValue}/{page}";
using (var request = RequestBuilder.CreateRequest(HttpMethod.Get, url))
{
var returnTag = await SendRequestAsync<Tag>(request).ConfigureAwait(false);
return returnTag;
}
}