예제 #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 TaskSid      = "{{ task_sid }}";
        var    client       = new TaskRouterClient(AccountSid, AuthToken);

        ReservationResult reservationResult = client.ListReservations(WorkspaceSid, TaskSid)
                                              foreach (Reservation reservation in reservationResult.Reservations)
        {
            Console.WriteLine(reservation.ReservationStatus);
            Console.WriteLine(reservation.WorkerName);
        }
    }