/// <summary> /// Allows multi transformation /// </summary> /// <param name="parameters">Parameters of operation</param> /// <returns>Result of operation</returns> public MultiResult Multi(MultiParams parameters) { UrlBuilder urlBuilder = new UrlBuilder( m_api.ApiUrlImgUpV. Action("multi"). BuildUrl()); using (HttpWebResponse response = m_api.Call( HttpMethod.POST, urlBuilder.ToString(), parameters.ToParamsDictionary(), null)) { MultiResult result = MultiResult.Parse(response); return(result); } }
public async Task <MultiResult> MultiAsync(MultiParams parameters) { using (var response = await Api.CallAsync(HttpMethod.Post, Api.ApiUrlImgUpV.Action("multi").BuildUrl(), parameters.ToParamsDictionary(), null, null)) { return(await MultiResult.Parse(response)); } }