private static Request BuildDeleteRequest(DeleteJobOptions options, ITwilioRestClient client) { return(new Request( HttpMethod.Delete, Rest.Domain.Bulkexports, "/v1/Exports/Jobs/" + options.PathJobSid + "", queryParams: options.GetParams() )); }
/// <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)); }
/// <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)); }