Beispiel #1
0
 private static Request BuildDeleteRequest(DeleteEnvironmentOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Delete,
                Rest.Domain.Serverless,
                "/v1/Services/" + options.PathServiceSid + "/Environments/" + options.PathSid + "",
                client.Region,
                queryParams: options.GetParams()
                ));
 }
Beispiel #2
0
        /// <summary>
        /// Delete a specific environment.
        /// </summary>
        /// <param name="pathServiceSid"> The SID of the Service to delete the Environment resource from </param>
        /// <param name="pathSid"> The SID that identifies the Environment resource to delete </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Environment </returns>
        public static bool Delete(string pathServiceSid, string pathSid, ITwilioRestClient client = null)
        {
            var options = new DeleteEnvironmentOptions(pathServiceSid, pathSid);

            return(Delete(options, client));
        }