Esempio n. 1
0
 private static Request BuildDeleteRequest(DeleteJobOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Delete,
                Rest.Domain.Preview,
                "/BulkExports/Exports/Jobs/" + options.PathJobSid + "",
                queryParams: options.GetParams(),
                headerParams: null
                ));
 }
Esempio n. 2
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="pathJobSid"> The unique string that that we created to identify the Bulk Export job </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Job </returns>
        public static async System.Threading.Tasks.Task <bool> DeleteAsync(string pathJobSid, ITwilioRestClient client = null)
        {
            var options = new DeleteJobOptions(pathJobSid);

            return(await DeleteAsync(options, client));
        }
Esempio n. 3
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="pathJobSid"> The unique string that that we created to identify the Bulk Export job </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Job </returns>
        public static bool Delete(string pathJobSid, ITwilioRestClient client = null)
        {
            var options = new DeleteJobOptions(pathJobSid);

            return(Delete(options, client));
        }