Example #1
0
    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 = client.ListAlerts();

        foreach (var alert in alerts.Alerts)
        {
            Console.WriteLine(alert.AlertText);
        }
    }
Example #2
0
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at client.com/user/account
        string AccountSid = "{{ account_sid }}";
        string AuthToken  = "{{ 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);
        }
    }