// GetAllUsers simply retrieves all users
GetAllUsers simply retrieves all users
// GetAllUsers simply retrieves all users
func (s *UserService) GetAllUsers() ([]User, error) {
	s.command = "getuserdata"
	s.data = User{}
	res, err := s.doRequest()
	if err != nil {
		return nil, err
	}
	var nonAdminUsers users
	err = JSONBodyDecoder(res, &nonAdminUsers)
	if err != nil {
		return nil, err
	}
	return nonAdminUsers.getUsers(), nil
}
func ( s * UserService ) GetAllUsers ( ) ( [ ] User , error ) { s . command = " " s . data = User { } res , err := s . doRequest ( ) if err != nil { return nil , err } var nonAdminUsers users err = JSONBodyDecoder ( res , & nonAdminUsers ) if err != nil { return nil , err } return nonAdminUsers . getUsers ( ) , nil }
GetAllUsers simply retrieves all users
GetAllUsers simply retrieves all users