private async Task <UploadMappingResults> CallUploadMappingsApiAsync(HttpMethod httpMethod, UploadMappingParams parameters) { SortedDictionary <string, object> parameters1 = null; string uploadMappingUrl; if (httpMethod == HttpMethod.Post || httpMethod == HttpMethod.Put) { uploadMappingUrl = GetUploadMappingUrl(); if (parameters != null) { parameters1 = parameters.ToParamsDictionary(); } } else { uploadMappingUrl = GetUploadMappingUrl(parameters); } using (var response = await Api.CallAsync(httpMethod, uploadMappingUrl, parameters1, null, null)) { return(await UploadMappingResults.Parse(response)); } }
private string GetUploadMappingUrl(UploadMappingParams parameters) { return(new UrlBuilder(GetUploadMappingUrl(), parameters.ToParamsDictionary()).ToString()); }