Google Calendar Integration Not Working

I am trying to test out the Google Calendar Integration but every time I click test nothing happens (no success or error message). In the log I see the following:

[February 6, 2014 10:35 pm] Error calling POST https://www.googleapis.com/calendar/v3/calendars/666h31tbfhdg15ppr8b36nf03o@group.calendar.google.com/events: (403) Forbidden

  • Ash
    • Code Norris

    Hello @LaShanda

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    If you click on the link you will see the following message:

    {
    "error": {
    "errors": [
    {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console"
    }
    ],
    "code": 403,
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
    }
    }

    I believe this is similar to this issue: https://wpmudev.com/forums/topic/integration-with-google-calendar-api#post-561995

    Please take a look.

    Cheers

    Ash

  • Ash
    • Code Norris

    The problem is with your google account and the calendar setup. Did you enable api access and authorize?

    Let’s look at this google code article: https://code.google.com/p/gdata-issues/issues/detail?id=5905

    According to Google’s reference this error could happen when an application performs the requests without either apiKey(old api) or (client_secret, client_id). But the project registered (visible via https://code.google.com/apis/console/) and more important – it works for most of the requests.

    And this: http://www.linuxadvocates.com/2013/03/the-json-api-example.html

    So, as you can see above, the issue wasn’t my JSON–it was the fact that the apikey was not ‘authorized’. Once enabled it worked flawlessly.

    If possible, try to create another calendar from scratch.

    Hope it helps! Please feel free to ask more question if you have.

    Cheers

    Ash

  • LaShanda
    • New Recruit

    Ok, so I deleted that project and created another one and it worked! I did a test connection and that worked too! The test appointment was entered into my calendar. Now here’s where I am stuck now… I’ve created 3 appointments and then confirmed each one, but none of them are going to my Google Calendar. I set up the GCal to go from A+ to GCal and then I tried synchronizing both ways but nothing. Am I missing something at this point? I don’t see any error messages in my log.

  • Ash
    • Code Norris

    Awesome, that the previous issue is fixed.

    Make sure your time zone is same for the calendar and your wordpress.

    Also, we normally do one more mistake. For example, if we book an appointment for 15th February, we normally check the running week, not 15th February. Make sure, you are not doing this mistake like us :slight_smile:

    Last question, did you add appointment from front end or back end?

    Cheers

    Ash

  • LaShanda
    • New Recruit

    Yay! I changed my wordpress timezone to match the calendar and its now working! Super excited, thanks a bunch. Last question for you… I modified some of my test appointments from the back end (changing dates and times). I haven’t seen them show up on my Google Calendar though. When back end changes are done OR if I manually create a new appointment in the back end will these also be sent to my Google Calendar? And if so is there an udpate delay? I’ve been clicking on the “Import and Updates Now” button via the GCal Settings page but I don’t know if that just returns any new events from the Google Calendar OR if it also sends new events from A+ to GCal. Thanks in advance for your help (smile) -lh

  • Ash
    • Code Norris

    Hi there,

    I am more than happy to help.

    When back end changes are done OR if you manually create a new appointment in the back end, but sometimes it needs some time to be synched and sometimes it fails.

    Any of your updates is not reflected in the gcal?

    Please let me know.

    Cheers

    Ash