Ejemplo n.º 1
0
 private static Request BuildDeleteRequest(DeleteQueryOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Delete,
                Rest.Domain.Preview,
                "/understand/Services/" + options.PathServiceSid + "/Queries/" + options.PathSid + "",
                client.Region,
                queryParams: options.GetParams()
                ));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="pathServiceSid"> The service_sid </param>
        /// <param name="pathSid"> The sid </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Query </returns>
        public static bool Delete(string pathServiceSid, string pathSid, ITwilioRestClient client = null)
        {
            var options = new DeleteQueryOptions(pathServiceSid, pathSid);

            return(Delete(options, client));
        }