Example #1
0
        public UpdateTransformResult UpdateTransform(UpdateTransformParams parameters)
        {
            UrlBuilder urlBuilder = new UrlBuilder(
                m_api.ApiUrlV.
                ResourceType("transformations").
                Add(parameters.Transformation).
                BuildUrl(),
                parameters.ToParamsDictionary());

            using (HttpWebResponse response = m_api.Call(
                       HttpMethod.PUT, urlBuilder.ToString(), null, null))
            {
                UpdateTransformResult result = UpdateTransformResult.Parse(response);
                return(result);
            }
        }
Example #2
0
 public async Task <UpdateTransformResult> UpdateTransformAsync(UpdateTransformParams parameters)
 {
     using (var response = await Api.CallAsync(HttpMethod.Put, Api.ApiUrlV.ResourceType("transformations").Add(parameters.Transformation).BuildUrl(), parameters.ToParamsDictionary(), null, null))
     {
         return(await UpdateTransformResult.Parse(response));
     }
 }