Beispiel #1
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 }}";
        string WorkspaceSid = "{{ workspace_sid }}";
        string WorkflowSid  = "{{ workflow_sid }}";
        var    client       = new TaskRouterClient(AccountSid, AuthToken);

        WorkflowStatistics stats = client.GetWorkflowStatistics(WorkspaceSid, WorkflowSid);

        Console.WriteLine(stats.Cumulative.AvgTaskAcceptanceTime);
        Console.WriteLine(stats.Cumulative.TasksEntered);
        Console.WriteLine(stats.Realtime.TasksByStatus.Pending);
        Console.WriteLine(stats.Realtime.TasksByStatus.Assigned);
    }