static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var client = new MonitorClient(AccountSid, AuthToken); client.DeleteAlert("NO5a7a84730f529f0a76b3e30c01315d1a"); }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var monitor = new MonitorClient(AccountSid, AuthToken); var e = monitor.GetEvent("AE21f24380625e4aa4abec76e39b14458d"); Console.WriteLine(e.Description); }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var client = new MonitorClient(AccountSid, AuthToken); var alert = client.GetAlert("NO5a7a84730f529f0a76b3e30c01315d1a"); Console.WriteLine(alert.AlertText); }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var client = new MonitorClient(AccountSid, AuthToken); var alerts = twilio.ListAlerts(); foreach (var alert in alerts.Alerts) { Console.WriteLine(alert.AlertText); } }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var monitor = new MonitorClient(AccountSid, AuthToken); var options = new EventListRequest(); options.ResourceSid = "PN4aa51b930717ea83c91971b86d99018f"; var events = monitor.ListEvents(options); foreach (var e in events.Events) { Console.WriteLine(e.Description); } }
static void Main(string[] args) { // Find your Account Sid and Auth Token at client.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var client = new MonitorClient(AccountSid, AuthToken); var alerts = client.ListAlerts("warning", new DateTime(2015, 4, 1), new DateTime(2015, 4, 30)); foreach (var alert in alerts.Alerts) { Console.WriteLine(alert.AlertText); } }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var monitor = new MonitorClient(AccountSid, AuthToken); var options = new EventListRequest(); options.StartDate = new DateTime(2015, 3, 1); options.EndDate = new DateTime(2015, 4, 1); var events = monitor.ListEvents(options); foreach (var e in events.Events) { Console.WriteLine(e.Description); } }