Announcement

Collapse
No announcement yet.

Unable to retrieve Google calandar events for my calendar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jrhocker
    replied
    The Google calendar did not have to be public. I found out the Calendar ID for my google calendar is the same as my email address. So, my code ends up being as follows for my personal calendar events. After making this change, I can see calendar events.

    Code:
    allEvents = hs.PluginFunction("BLGData", "", "GetCalendarEventsForXDays", new Object(){"myemail@gmail.com","myemail@gmail.com",0})

    -----------------------------------------------------------------------

    Now, my only problem is finding out how to get the birthdays from my Google calendar.

    The Google Calendar ID under settings for Birthdays lists the following:

    Calendar ID:
    addressbook#contacts@group.v.calendar.google.com

    I tried placing this in the code, but it fails.

    allEvents = hs.PluginFunction("BLGData", "", "GetCalendarEventsForXDays", new Object(){"myemail@gmail.com","addressbook#contacts@group.v.c alendar.google.com",0})

    Leave a comment:


  • jrhocker
    replied
    It's not public. I'll change it. Thanks

    Leave a comment:


  • Blade
    replied
    Is the calendar public?
    I believe it has to be public for the plugin to be able to grab it

    Leave a comment:


  • jrhocker
    replied
    Could there be a permissions setting that I have not changed in Google?

    Leave a comment:


  • jrhocker
    started a topic Unable to retrieve Google calandar events for my calendar

    Unable to retrieve Google calandar events for my calendar

    I am able to retrieve Google calandar events for 'Other calandars', but I cannot retrieve calendar events for 'My calandars'. Specifically, I would like to retrieve events individually from 'Birthdays' and events from 'James Hocker'. (See available calandars from Google screenshot below)

    The script I am using (that fails) for My calandars is:

    Code:
    allEvents = hs.PluginFunction("BLGData", "", "GetCalendarEventsForXDays", new Object(){"myemail@gmail.com","My calandars",0})

    In the field where "My calandars" is, I have tried "My calandars", "James Hocker", "Birthdays", "My Calandar". Nothing works...I get an error that says 'GetCalendarEventsForXDays(): ​Calendars: My calendars does not exist for user in the plug-in'


    -----------------------------------------------------------------------------------------------------------------------------

    The following script works for the 'Other calandars' - "Holidays in United States"

    Code:
    allEvents = hs.PluginFunction("BLGData", "", "GetCalendarEventsForXDays", new Object(){"myemail@gmail.com","Holidays in United States",0})

    Attached Files
Working...
X