public void AddRule() { // Add a new rule. try { var voximplant = new VoximplantAPI(); var result = voximplant.AddRule( "allowall", ".*", applicationId: 1L ).Result; Console.WriteLine($"Response: {result.ToString()}"); } catch (Exception e) { Console.WriteLine($"Error: {e.Message}"); } }