* $driveService = new Google\Service\Drive(...); * $apps = $driveService->apps; * */ class Apps extends \Google\Service\Resource { /** * Gets a specific app. (apps.get) * * @param string $appId The ID of the app. * @param array $optParams Optional parameters. * @return App * @throws \Google\Service\Exception */ public function get($appId, $optParams = []) { $params = ['appId' => $appId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], App::class); } /** * Lists a user's installed apps. (apps.listApps) * * @param array $optParams Optional parameters. * * @opt_param string appFilterExtensions A comma-separated list of file * extensions to limit returned results. All results within the given app query * scope which can open any of the given file extensions are included in the * response. If `appFilterMimeTypes` are provided as well, the result is a union * of the two resulting app lists. * @opt_param string appFilterMimeTypes A comma-separated list of file * extensions to limit returned results. All results within the given app query * scope which can open any of the given MIME types will be included in the * response. If `appFilterExtensions` are provided as well, the result is a * union of the two resulting app lists. * @opt_param string languageCode A language or locale code, as defined by BCP * 47, with some extensions from Unicode's LDML format * (http://www.unicode.org/reports/tr35/). * @return AppList * @throws \Google\Service\Exception */ public function listApps($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('list', [$params], AppList::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Apps::class, 'Google_Service_Drive_Resource_Apps');