* $integrationsService = new Google\Service\Integrations(...); * $callback = $integrationsService->callback; * */ class Callback extends \Google\Service\Resource { /** * Receives the auth code and auth config id to combine that with the client id * and secret to retrieve access tokens from the token endpoint. Returns either * a success or error message when it's done. (callback.generateToken) * * @param array $optParams Optional parameters. * * @opt_param string code The auth code for the given request * @opt_param string gcpProjectId The gcp project id of the request * @opt_param string product Which product sends the request * @opt_param string redirectUri Redirect uri of the auth code request * @opt_param string state The auth config id for the given request * @return GoogleCloudIntegrationsV1alphaGenerateTokenResponse * @throws \Google\Service\Exception */ public function generateToken($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('generateToken', [$params], GoogleCloudIntegrationsV1alphaGenerateTokenResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Callback::class, 'Google_Service_Integrations_Resource_Callback');