コード例 #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    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);
        }
    }
コード例 #2
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    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);
        }
    }
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string AccountSid = "{{ account_sid }}";
        string AuthToken  = "{{ auth_token }}";
        var    monitor    = new MonitorClient(AccountSid, AuthToken);

        var options = new EventListRequest();

        options.ActorSid    = "USd0afd67cddff4ec7cb0022771a203cb1";
        options.ResourceSid = "PN4aa51b930717ea83c91971b86d99018f";
        var events = monitor.ListEvents(options);

        foreach (var e in events.Events)
        {
            Console.WriteLine(e.Description);
        }
    }
コード例 #4
0
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string AccountSid = "{{ account_sid }}";
        string AuthToken  = "{{ auth_token }}";
        var    monitor    = new MonitorClient(AccountSid, AuthToken);

        var options = new EventListRequest();

        options.SourceIpAddress = "104.14.155.29";
        options.StartDate       = new DateTime(2015, 4, 25);
        options.EndDate         = new DateTime(2015, 4, 25, 23, 59, 59);
        var events = monitor.ListEvents(options);

        foreach (var e in events.Events)
        {
            Console.WriteLine(e.Description);
        }
    }