示例#1
0
        private static int ListUsers(ListUsersOptions opts)
        {
            var zoomService = new ZoomService(opts.ApiKey, opts.ApiSecret);
            var users       = zoomService.ListUsers().ConfigureAwait(false).GetAwaiter().GetResult();

            foreach (var user in users)
            {
                Console.WriteLine($"Id: {user.Id}; First name: {user.FirstName}; Last name: {user.LastName}; eMail: {user.Email}");
            }
            return(0);
        }
示例#2
0
        private static int ListMeetings(ListMeetingsOptions opts)
        {
            var zoomService = new ZoomService(opts.ApiKey, opts.ApiSecret);
            var allMeetings = new List <Meeting>();
            var users       = zoomService.ListUsers().ConfigureAwait(false).GetAwaiter().GetResult();

            foreach (var user in users)
            {
                var meetings = zoomService.ListMeetings(user.Id, MeetingState.Scheduled).ConfigureAwait(false).GetAwaiter().GetResult();
                allMeetings.AddRange(meetings);
            }

            foreach (var meeting in allMeetings)
            {
                Console.WriteLine($"Id: {meeting.Id}; Topic: {meeting.Topic}; Host: {meeting.HostId}; Start: {meeting.StartTime}; JoinUrl: {meeting.JoinUrl}");
            }
            return(0);
        }