Exemple #1
0
        /// <summary>
        ///     Gets the content of the email statement.
        /// </summary>
        /// <param name="contact_id">The contact_id is the identifier of the contact.</param>
        /// <param name="parameters">
        ///     The parameters is the dictionary object which is optionally had the following key value pairs.<br></br>
        ///     <table>
        ///         <tr>
        ///             <td>start_date</td>
        ///             <td>If start_date and end_date are not given, current month's statement will be sent to contact.</td>
        ///         </tr>
        ///         <tr>
        ///             <td>end_date</td><td>End date for the statement.</td>
        ///         </tr>
        ///     </table>
        /// </param>
        /// <returns>Email object.</returns>
        public Email GetEmailStatementContent(string contact_id, Dictionary <object, object> parameters)
        {
            var url      = baseAddress + "/" + contact_id + "/statements/email";
            var responce = ZohoHttpClient.get(url, getQueryParameters(parameters));

            return(ContactParser.getEmailContent(responce));
        }
        /// <summary>
        /// Gets the content of the email for the creditnote.
        /// </summary>
        /// <param name="creditnote_id">The creditnote_id is the identifier of the contact.</param>
        /// <param name="parameters">The parameters is the dictionary object which is having the optional parameter email_template_id as key,value pair.</param>
        /// <returns>Email object.</returns>
        public Email GetEmailContent(string creditnote_id, Dictionary <object, object> parameters)
        {
            string url      = baseAddress + "/" + creditnote_id + "/email";
            var    responce = ZohoHttpClient.get(url, getQueryParameters(parameters));

            return(ContactParser.getEmailContent(responce));
        }
Exemple #3
0
        /// <summary>
        /// Gets the mail content of the payment reminder.
        /// </summary>
        /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param>
        /// <returns>Email object.</returns>
        public Email GetPaymentReminder(string invoice_id)
        {
            string url      = baseAddress + "/" + invoice_id + "/paymentreminder";
            var    responce = ZohoHttpClient.get(url, getQueryParameters());

            return(ContactParser.getEmailContent(responce));
        }