コード例 #1
0
        /// <summary>
        /// Re-sends the notification for an inbound fax just as when it was first sent. Only for inbound faxes.
        /// </summary>
        public static string ResendFaxNotification(string username, string password, Guid productId, FaxIdItem item)
        {
            string method = "Fax_ResendFaxNotification";
            var    http   = FaxInterfaceRaw.GetHttp(username, password, productId);

            //Put them on the http object
            Common.wwHttpHelper.AddParameterList <FaxIdItem>(http, new List <FaxIdItem>()
            {
                item
            }, "FaxIds");

            return(FaxInterfaceRaw.GetResponseStr(http, String.Format(FaxInterfaceRaw.RestUrlTemplate, method)));
        }
コード例 #2
0
        /// <summary>
        /// Send the fax as an email.  Works on inbound and outbound faxes.
        /// </summary>
        public static string SendFaxAsEmail(string username, string password, Guid productId, FaxIdItem item, string emailAddress)
        {
            string method = "Fax_SendFaxAsEmail";
            var    http   = FaxInterfaceRaw.GetHttp(username, password, productId);

            http.AddPostKey("FeedbackEmail", emailAddress);

            //Put them on the http object
            Common.wwHttpHelper.AddParameterList <FaxIdItem>(http, new List <FaxIdItem>()
            {
                item
            }, "FaxIds");

            return(FaxInterfaceRaw.GetResponseStr(http, String.Format(FaxInterfaceRaw.RestUrlTemplate, method)));
        }