public async Task <Hook> DisableHook(string projectKey, string repositorySlug, string hookKey) { string requestUrl = UrlBuilder.FormatRestApiUrl(HOOK_ENABLE, null, projectKey, repositorySlug, hookKey); Hook response = await _httpWorker.DeleteWithResponseContentAsync <Hook>(requestUrl).ConfigureAwait(false); return(response); }
public async Task <User> Delete(string name) { string requestUrl = UrlBuilder.FormatRestApiUrl(DELETE_USER, null, name); User response = await _httpWorker.DeleteWithResponseContentAsync <User>(requestUrl).ConfigureAwait(false); return(response); }