Ejemplo n.º 1
0
        private object GetdingTalkUsersList()
        {
            DingTalkUsersApp dutyApp = new DingTalkUsersApp();
            var data = dutyApp.GetList();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            foreach (DingTalkUserEntity item in data)
            {
                var fieldItem = new
                {
                    encode   = item.UserId,
                    fullname = item.UserName
                };
                dictionary.Add(item.UserId, fieldItem);
            }
            return(dictionary);
        }