I am trying to implement the Google API, I have this video:

Hello,
I am trying to implement the Google API, I have this video: , https://www.youtube.com/watch?v=Uh-K-6Sxu3I
, however it appears the Google platform has changed and none of these steps seem to follow the new layout. Do you have a newer video for the new Google API layout that I have just not found? Thanks!
Troy C

  • Michael Bissett

    Hey @Troy, Michael here!

    Hmm... that video's going to have be updated, but in the meantime, I do have a set of instructions here for you that can help you get this all set up:

    ====================================================

    (be advised, this set of instructions assumes that you're setting this up with a personal Gmail account)

    #1: Login to your Google Account (if you haven't already), and visit the Google Developers Console by going here:

    https://console.developers.google.com/project/

    Click on "Create project" to begin creating a project. Make sure to give it a name (e.g. Appointments).

    Once it's created, click on the ? icon to the left of the Google Developers Console logo in the upper left, and click on "API Manager" from the menu that comes out.

    From there, search for "Calendar API" (without quotes), if you don't already see the entry in the list of APIs there. Once you see it, click on the entry for it, and then click on "Enable API".

    #2: Once you've done that, go to:

    API Manager -> Credentials

    And click on the "New credentials" button there, making sure to select the "Service account key" option. Make sure that the "New service account" option is chosen in the "Service account" dropdown there, and that you've set a name. For the key type, you'll want to choose "P12". Click on "Create", and then download the key file that was generated.

    From here, you'll want to upload the key file via FTP to:

    /wp-content/plugins/appointments/includes/gcal/key/

    This file is required for the integration to work, as it serves as a proof of your consent to your Google Calendar account being accessed by Appointments+.

    Once uploaded, enter the name of the key file (excluding the .p12 extension) into the "Key file name" field inside of the Google Calendar settings within Appointments+.

    For reference, this is in:

    Appointments -> Settings -> Google Calendar

    #3: Back in the Google Developers Console, inside of:

    API Manager -> Credentials

    You'll want to click on the "Manage service accounts" link on the right side of the page, and copy the email address listed there for your service account, and enter it into the "Service account email address" field inside of the Google Calendar settings within Appointments+.

    #4: With that done, open up Google Calendar by going here:

    https://www.google.com/calendar/render

    On the left sidebar, create a new calendar by clicking on the drop-down icon next to "My calendars", and selecting "Create new calendar".

    From there, give your new calendar a name (e.g. Appointments), and make sure that the "Calendar Time Zone" matches the timezone for your WordPress site (otherwise, there will be a time shift).

    In the "Share with specific people" section, enter the email address for your service account in the "Person" field, and set the "Permission Settings" to "Make changes to events". Click on "Add person" once you've done so, and then click on "Create Calendar".

    Then, from the "My calendars" section on the left sidebar, hover over the entry for your calendar, click the drop-down icon that appears, and click on "Calendar Settings". In the "Calendar Address" section, you'll want to copy the "Calendar ID" noted there, it'll look like this:

    bui2354bfgv78epb45354356j8@group.calendar.google.com

    Then, enter the Calendar ID you copied into the "Calendar to be used" settings field below.

    #5: After that, you'll want to choose your desired integration method from the "Integration method" option shown below. After doing all this, and clicking on "Save Settings", you'll see a new "Test Connection" link appear at the bottom of the page here, where you can verify that the connection is working properly.

    If the test appointment gets created successfully, congratulations, you did it! If not, you'll want to double check your settings here, and verify that there isn't something missing.

    Hope this helps! :slight_smile:

    Kind Regards,
    Michael

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.