* $analyticsreportingService = new Google\Service\AnalyticsReporting(...); * $userActivity = $analyticsreportingService->userActivity; * */ class UserActivity extends \Google\Service\Resource { /** * Returns User Activity data. (userActivity.search) * * @param SearchUserActivityRequest $postBody * @param array $optParams Optional parameters. * @return SearchUserActivityResponse * @throws \Google\Service\Exception */ public function search(SearchUserActivityRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('search', [$params], SearchUserActivityResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(UserActivity::class, 'Google_Service_AnalyticsReporting_Resource_UserActivity');