Google Calendar Sync

1,129 views
Skip to first unread message

Helper Laços Vitais

unread,
May 13, 2014, 10:01:04 AM5/13/14
to easy-app...@googlegroups.com
Hello,
I need your help. 
How could i get  this

 // Google Calendar API Settings
    
    public static $google_product_name  = '';
    public static $google_client_id     = '';
    public static $google_client_secret = '';
    public static $google_api_key       = '';

Thanks

Alex Tselegidis

unread,
May 18, 2014, 5:45:34 PM5/18/14
to easy-app...@googlegroups.com
Hi! This should look like this:

// Google Calendar API Settings
    public static $google_sync_feature  = TRUE; // Enter TRUE or FALSE;
    public static $google_product_name  = 'Easy!Appointments';
    public static $google_client_id     = '396094750598-l9ohhdgs0hr6qi89628c3chf9lm69mkc.apps.googleusercontent.com';
    public static $google_client_secret = '3kKEgx4mgxfFInrWf3jTUn4A';
    public static $google_api_key       = 'AIzbSyCLMin3-ePz8xShJ7klSduw7iChDF7ldk0';

Go to the Google Developers Console and create a new project. When you set the required info for your project your api keys will be generated. Copy these keys in your configuration.php file.

*** Be sure to set the "Redirect URIs" setting to this: "http://url-to-ea-installation/google/oauth_callback"

Helper Laços Vitais

unread,
May 23, 2014, 12:45:32 PM5/23/14
to easy-app...@googlegroups.com
I get all calendar api settings know when i syncr show me the error Error calling GET https://www.googleapis.com/calendar/v3/users/me/calendarList?key= xxxxxxxxxxxxxxxc: (403) Access Not Configured. Please use Google Developers Console to activate the API for your project.

Alex Tselegidis

unread,
May 29, 2014, 4:07:16 PM5/29/14
to easy-app...@googlegroups.com

iuzzef

unread,
Aug 21, 2014, 9:18:51 PM8/21/14
to easy-app...@googlegroups.com
This is what I get:

401. That’s an error.

Error: invalid_client

no application name

That’s all we know.

iuzzef

unread,
Aug 21, 2014, 10:51:59 PM8/21/14
to easy-app...@googlegroups.com
Ok I fixed this filling the details in the consent screen on console.developers.google.com

Samuele Filomena

unread,
Aug 31, 2014, 9:51:04 AM8/31/14
to easy-app...@googlegroups.com
Google synchronization failed: Could not establish server connection.
I made a step, but still not perfect

Alex Tselegidis

unread,
Sep 2, 2014, 4:05:19 PM9/2/14
to easy-app...@googlegroups.com
@Samuele Filomena

There must be something that won't let your installation use Google Calendar API properly. Do you have the cURL extension installed and enabled?

Samuele Filomena

unread,
Sep 3, 2014, 11:05:44 AM9/3/14
to easy-app...@googlegroups.com
How to do that? In the server? Say more please
Sam

Samuele Filomena

unread,
Sep 5, 2014, 9:27:48 AM9/5/14
to easy-app...@googlegroups.com
The sync is working now, but I have a problem with the time zone, how to adjust that?

Samuele Filomena

unread,
Sep 5, 2014, 9:38:26 AM9/5/14
to easy-app...@googlegroups.com
Google synchronization completed successfully!

Chad Quimby

unread,
Jan 23, 2015, 12:04:52 AM1/23/15
to easy-app...@googlegroups.com
how did you resolve this? I am able to get it to sync, but the times are all way wrong.

3ch310n

unread,
Sep 29, 2015, 8:16:01 AM9/29/15
to Easy!Appointments - Support Group

Am relatively new to easy Appointments and its a great system. Having troubles synchronizing the calenda. 

pls, luzzef, how did you fix that 401 error? I get same error as you. 

Here is how my console is configured and set up.


Thanks and waiting for your reply.

Emm

unread,
Feb 19, 2016, 9:19:47 AM2/19/16
to Easy!Appointments - Support Group
Error calling POST https://www.googleapis.com/calendar/v3/calendars/primary/events?key=XXXXX-HIDDEN-XXXXXXXXXXXXXXXXXXXXXXX: (403) There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.
I Still cannot get through this issue.
What is the best way to deal with this?
I deleted the full installation and reinstalled - files as well as the DB - but still not able to sync with GOOGLE CALENDAR.
I can authorise Google - but doesnt sync and gives me the error mentioned above.

Appreciate any help to resolve this issue

Risto Virtanen

unread,
May 20, 2016, 5:54:27 AM5/20/16
to Easy!Appointments - Support Group
Hi,

I'm having problems with Google sync configuration. I've read the instructions and as far as I understand everything has been done properly but I just can't figure out the right strings to put into config.php

I created  a project and OAuth keys as instructed and got a json file with the following content (edited slightly for this post):

{"web":
{"client_id":"_CHANGED_.apps.googleusercontent.com",
"project_id":"ea-test-1315",
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
"client_secret":"_CHANGED_",
"javascript_origins":["http://www.my.dom"]}}

In config.php:

    // ------------------------------------------------------------------------
    // Google Calendar Sync
    // ------------------------------------------------------------------------
    const GOOGLE_SYNC_FEATURE   = TRUE; // Enter TRUE or FALSE
    const GOOGLE_PRODUCT_NAME   = 'ea-test-1315';
    const GOOGLE_CLIENT_ID      = '_CHANGED_.apps.googleusercontent.com';
    const GOOGLE_CLIENT_SECRET  = '_CHANGED_';
    const GOOGLE_API_KEY        = '';
}

What should I put into GOOGLE_API_KEY?

/r

Alex Tselegidis

unread,
May 25, 2016, 3:21:30 PM5/25/16
to Easy!Appointments - Support Group
Try the credentials page of the Google Cloud Platform. There you can create API Keys which is also the ones to be used for the GOOGLE_API_KEY constant. 

Google has changed the Developers Platform many times lately and the existing guides of E!A are a bit outdated. I will update them soon.

Lee Eden

unread,
Jul 24, 2018, 4:52:05 AM7/24/18
to Easy!Appointments - Support Group
Did you get this to keep working after this? I have installed today and the same issue is happening?
Reply all
Reply to author
Forward
0 new messages