Ejemplo n.º 1
0
        /// <summary>
        /// Generate a custom email
        /// </summary>
        /// <param name="request"></param>
        public GenerateFreeTextEmailResponse GenerateFreeTextEmail(GenerateFreeTextEmailRequest request)
        {
            var response = GetResponse("Email/GenerateFreeTextEmail", "request=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(request)) + "", "POST");

            return(JsonFormatter.ConvertFromJson <GenerateFreeTextEmailResponse>(response));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Generate a custom email
        /// </summary>
        /// <param name="request"></param>
        public GenerateFreeTextEmailResponse GenerateFreeTextEmail(GenerateFreeTextEmailRequest request)
        {
            var response = GetResponse("Email/GenerateFreeTextEmail", "request=" + JsonFormatter.ConvertToJson(request) + "");

            return(JsonFormatter.ConvertFromJson <GenerateFreeTextEmailResponse>(response));
        }