Esempio n. 1
0
 private static Request BuildDeleteRequest(DeleteMessageOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Delete,
                Rest.Domain.Messaging,
                "/v1/Sessions/" + options.PathSessionSid + "/Messages/" + options.PathSid + "",
                client.Region,
                queryParams: options.GetParams()
                ));
 }
Esempio n. 2
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="pathSessionSid"> The unique id of the Session for this message. </param>
        /// <param name="pathSid"> A 34 character string that uniquely identifies this resource. </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Message </returns>
        public static bool Delete(string pathSessionSid, string pathSid, ITwilioRestClient client = null)
        {
            var options = new DeleteMessageOptions(pathSessionSid, pathSid);

            return(Delete(options, client));
        }