public async Task<bool> PublishToGalleryAsync(string galleryItemId, string title, string topicId = null,
bool? bypassTerms = null,
bool? mature = null)
{
if (string.IsNullOrWhiteSpace(galleryItemId))
throw new ArgumentNullException(nameof(galleryItemId));
if (string.IsNullOrWhiteSpace(title))
throw new ArgumentNullException(nameof(title));
if (ApiClient.OAuth2Token == null)
throw new ArgumentNullException(nameof(ApiClient.OAuth2Token), OAuth2RequiredExceptionMessage);
var url = $"gallery/{galleryItemId}";
using (var request = RequestBuilder.PublishToGalleryRequest(url, title, topicId, bypassTerms, mature))
{
var published = await SendRequestAsync<bool>(request).ConfigureAwait(false);
return published;
}
}