setClientId($settings['google_client_id']); $client->setClientSecret($settings['google_client_secret']); $client->setDeveloperKey($settings['google_api_key']); $client->setRedirectUri(new_google_login_url()); $client->setApprovalPrompt('auto'); $oauth2 = new apiOauth2Service($client);