Retrieves list of user profiles for a user. (userProfiles.list)

@param array $optParams Optional parameters.
@return UserProfileList
324870
public function listUserProfiles($optParams = array()) {
      $params = array();
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new UserProfileList($data);
      } else {
        return $data;
      }
    }
1200339
public function listThreatLists($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_Safebrowsing_ListThreatListsResponse");
  }
1113517
public function listOffers($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "AdExchangeBuyer_ListOffersResponse");
  }
58505
public function listSubscriptions($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse");
  }
1044217
public static function getProfileList()
  {
    static $list;
    if (!empty($list)) {
      return $list;
    }
    $lists = array_map(function ($source) {
      return array_map(function ($item) use ($source) {
        $item['source'] = $source->getName();
        return $item;
      },
      $source->getList());
    },
    self::getSources());

    $list = call_user_func_array('array_merge', $lists);
    return $list;
  }
917000
public function listContacts($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse");
  }
742608
public function listWebResource($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse");
  }
1136797
public function listBadges($userId, $optParams = array()) {
      $params = array('userId' => $userId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new BadgeList($data);
      } else {
        return $data;
      }
    }
467648
public function getByParams($params)
	{
		try {
			//validate
			$obj    = new \erdiko\users\entities\User;
			$params = (array) $params;
			$filter = array();
			foreach ($params as $key => $value) {
				$method = "get" . ucfirst( $key );
				if (method_exists($obj, $method)) {
					$filter[ $key ] = $value;
				}
			}
			$repo   = $this->getRepository( 'erdiko\users\entities\User' );
			$result = empty($filter)
				? $this->getUsers()
				: $repo->findBy( $filter );
		} catch (\Exception $e) {
			throw new \Exception($e->getMessage());
		}
		return $result;
	}
208649
public function listOperatingSystems($profileId, $optParams = array())
  {
    $params = array('profileId' => $profileId);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Dfareporting_OperatingSystemsListResponse");
  }
1002501
public function getAllUsers($parameters = array())
    {
        $response = $this->client->get('/v2/user', $parameters);

        $users = array();
        foreach ($response['items'] as $response) {
            $users[] = new User($response);
        }

        return $users;
    }
640005
public function listConnectionTypes($profileId, $optParams = array())
  {
    $params = array('profileId' => $profileId);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Dfareporting_ConnectionTypesListResponse");
  }
1218281
public function listPostalCodes($profileId, $optParams = array())
  {
    $params = array('profileId' => $profileId);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Dfareporting_PostalCodesListResponse");
  }
150523
public function listAccountsPayments($accountId, $optParams = array())
  {
    $params = array('accountId' => $accountId);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_AdSense_Payments");
  }
1271797
public function listBillingInfo($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "AdExchangeBuyer_BillingInfoList");
  }
590854
public function search($params)
    {
        $query = User::find();
        $query->joinWith('profile');

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);
        $dataProvider->sort->attributes['name'] = [
            'asc' => [
                UserProfile::tableName().'.[[first_name]]' => SORT_ASC,
                UserProfile::tableName().'.[[last_name]]' => SORT_ASC,
                UserProfile::tableName().'.[[patronymic]]' => SORT_ASC,
            ],
            'desc' => [
                UserProfile::tableName().'.[[first_name]]' => SORT_DESC,
                UserProfile::tableName().'.[[last_name]]' => SORT_DESC,
                UserProfile::tableName().'.[[patronymic]]' => SORT_DESC,
            ],
            'default' => SORT_ASC
        ];
        $dataProvider->sort->defaultOrder = ['username' => SORT_ASC];

        if (!($this->load($params) && $this->validate())) {
            return $dataProvider;
        }

        $query->andFilterWhere([
            'id' => $this->id,
            User::tableName().'.[[role]]' => $this->role,
            User::tableName().'.[[status]]' => $this->status,
            User::tableName().'.[[last_visit_at]]' => $this->last_visit_at,
        ]);

        $query->andFilterWhere(['like', User::tableName().'.[[username]]', $this->username])
            ->andFilterWhere(['like', User::tableName().'.[[email]]', $this->email]);

        $query->andFilterWhere(
            ['or',
                ['like', UserProfile::tableName().'.[[first_name]]', $this->name],
                ['like', UserProfile::tableName().'.[[last_name]]', $this->name],
                ['like', UserProfile::tableName().'.[[patronymic]]', $this->name],
            ]
        );

        return $dataProvider;
    }
570804
public function view($params, $optParams = [])
    {
        if (!$params instanceof AccessToken) {
            throw new InvalidParamException(AccessToken::class . ' is required!');
        }
        $class = get_class($params);

        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => $params->id,
            'getParams' => $optParams,
        ], function ($response) use ($class) {
            return isset($response->data) ? new $class($response->data) : $response;
        });
    }