public CallControlApplication Delete() { string id = "1293384261075731499"; CallControlApplication callControlApplication = new CallControlApplication(); Console.WriteLine(id); try { callControlApplication = callControlApplicationService.Delete(id); Console.WriteLine(JsonConvert.SerializeObject(callControlApplication)); } catch (TelnyxException ex) { Console.WriteLine("exception"); Console.WriteLine(JsonConvert.SerializeObject(ex)); } return(callControlApplication); }
public CallControlApplication Create() { CallControlApplication callControlApplication = new CallControlApplication(); CreateCallControlApplicationOptions listCallControlApplicationOptions = new CreateCallControlApplicationOptions { Active = false, AnchorsiteOverride = AnchorsiteOverride.AmsterdamNetherlands }; Console.WriteLine(JsonConvert.SerializeObject(listCallControlApplicationOptions)); try { callControlApplication = callControlApplicationService.Create(listCallControlApplicationOptions); Console.WriteLine(JsonConvert.SerializeObject(callControlApplication)); } catch (TelnyxException ex) { Console.WriteLine("exception"); Console.WriteLine(JsonConvert.SerializeObject(ex)); } return(callControlApplication); }