Ejemplo n.º 1
0
        /// <summary>
        ///     Update the details of an automated payment reminder.
        /// </summary>
        /// <param name="reminder_id">The reminder_id is the identifier of the auto reminder.</param>
        /// <param name="update_info">The update_info is the AutoReminder object which contains the updation details.</param>
        /// <returns>System.String.<br></br>The success message is "Your payment reminder preferences have been saved."</returns>
        public AutoReminder UpdateAnAutoReminder(string reminder_id, AutoReminder update_info)
        {
            var url        = baseAddress + "/autoreminders/" + reminder_id;
            var json       = JsonConvert.SerializeObject(update_info);
            var jsonstring = new Dictionary <object, object>();

            jsonstring.Add("JSONString", json);
            var response = ZohoHttpClient.put(url, getQueryParameters(jsonstring));

            return(SettingsParser.getAutoReminder(response));
        }