Esempio n. 1
0
 public async Task <GetTransformResult> GetTransformAsync(GetTransformParams parameters)
 {
     using (
         var response = await Api.CallAsync(HttpMethod.Get,
                                            new UrlBuilder(Api.ApiUrlV.ResourceType("transformations").Add(parameters.Transformation).BuildUrl(), parameters.ToParamsDictionary()).ToString(), null, null, null))
     {
         return(await GetTransformResult.Parse(response));
     }
 }
Esempio n. 2
0
        public GetTransformResult GetTransform(GetTransformParams parameters)
        {
            UrlBuilder urlBuilder = new UrlBuilder(
                m_api.ApiUrlV.
                ResourceType("transformations").
                Add(parameters.Transformation).
                BuildUrl(),
                parameters.ToParamsDictionary());

            using (HttpWebResponse response = m_api.Call(
                       HttpMethod.GET, urlBuilder.ToString(), null, null))
            {
                GetTransformResult result = GetTransformResult.Parse(response);
                return(result);
            }
        }