forked from mirrors/easyappointments
Remove the Google Product Name and Google API Key config values as they are no longer needed
This commit is contained in:
parent
87e27d4070
commit
36937a6492
5 changed files with 1 additions and 11 deletions
|
@ -12,10 +12,7 @@
|
|||
|
||||
$config['google_sync_feature'] = Config::GOOGLE_SYNC_FEATURE;
|
||||
|
||||
$config['google_product_name'] = Config::GOOGLE_PRODUCT_NAME;
|
||||
|
||||
$config['google_client_id'] = Config::GOOGLE_CLIENT_ID;
|
||||
|
||||
$config['google_client_secret'] = Config::GOOGLE_CLIENT_SECRET;
|
||||
|
||||
$config['google_api_key'] = Config::GOOGLE_API_KEY;
|
||||
|
|
|
@ -65,10 +65,9 @@ class Google_sync {
|
|||
|
||||
$this->client = new Google_Client();
|
||||
$this->client->setHttpClient($http);
|
||||
$this->client->setApplicationName(config('google_application_name'));
|
||||
$this->client->setApplicationName('Easy!Appointments');
|
||||
$this->client->setClientId(config('google_client_id'));
|
||||
$this->client->setClientSecret(config('google_client_secret'));
|
||||
$this->client->setDeveloperKey(config('google_api_key'));
|
||||
$this->client->setRedirectUri(site_url('google/oauth_callback'));
|
||||
$this->client->setPrompt('consent');
|
||||
$this->client->setAccessType('offline');
|
||||
|
|
|
@ -48,8 +48,6 @@ class Config {
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
const GOOGLE_SYNC_FEATURE = FALSE; // Enter TRUE or FALSE
|
||||
const GOOGLE_PRODUCT_NAME = '';
|
||||
const GOOGLE_CLIENT_ID = '';
|
||||
const GOOGLE_CLIENT_SECRET = '';
|
||||
const GOOGLE_API_KEY = '';
|
||||
}
|
||||
|
|
|
@ -30,10 +30,8 @@ class Config {
|
|||
// ------------------------------------------------------------------------
|
||||
|
||||
const GOOGLE_SYNC_FEATURE = FALSE; // You can optionally enable the Google Sync feature.
|
||||
const GOOGLE_PRODUCT_NAME = '';
|
||||
const GOOGLE_CLIENT_ID = '';
|
||||
const GOOGLE_CLIENT_SECRET = '';
|
||||
const GOOGLE_API_KEY = '';
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -28,10 +28,8 @@ Customers will be able to sync their appointments with their Google Calendars bu
|
|||
To enable the synchronization edit your root config.php file and update the Google Calendar Sync section with your API credentials.
|
||||
|
||||
- `GOOGLE_SYNC_FEATURE` needs to be set to `TRUE`.
|
||||
- `GOOGLE_PRODUCT_NAME` needs to have the same name as the Google Cloud Console project.
|
||||
- `GOOGLE_CLIENT_ID` needs the client ID from the OAuth2 credentials.
|
||||
- `GOOGLE_CLIENT_SECRET` needs the client secret from the OAuth2 credentials.
|
||||
- `GOOGLE_API_KEY` needs the API key created in the previous section.
|
||||
|
||||
4. **Link Google Calendar and Easy!Appointments**: Go to backend/calendar page, select a provider and click on the "Enable Sync" button. A new window will pop up asking you to grant concern. Enter the user's credentials and the sync will be activated!
|
||||
|
||||
|
|
Loading…
Reference in a new issue