Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reflect boneyard status in title

DESCRIPTION:

This module provides basic read-only interactions with a Google Calendar


now() returns a structure that looks like this:



{
"guestsCanSeeGuests" : true,
"creator" : {
    "displayName" : "Office Temperature"
    },
"sequence" : 1,
"status" : "confirmed",
"alternateLink" : "https://www.google.com/calendar/event?eid=bWQ3OWM4Nzk4a3RiaDE5anEwYTk4cnZjcGsgbWY0b2I0MTE0dDBmNHNnampoZG1taXJmamNAZw",
"kind" : "calendar#event",
"selfLink" : "https://www.google.com/calendar/feeds/mf4ob4114t0f4sgjjhdmmirfjc%40group.calendar.google.com/public/full/md79c8798ktbh19jq0a98rvcpk",
"updated" : "2012-08-16T17:31:41.000-06:00",
"guestsCanInviteOthers" : true,
"id" : "md79c8798ktbh19jq0a98rvcpk",
"canEdit" : false,
"when" : [
   {
    "start" : "2012-08-16T16:00:00.000-06:00",
    "end" : "2012-08-17T17:00:00.000-06:00"
   }
  ],

"transparency" : "opaque",
"attendees" : [
  {
   "rel" : "organizer",
   "email" : "mf4ob4114t0f4sgjjhdmmirfjc@group.calendar.google.com",
   "displayName" : "Office Temperature"
  }
],
"location" : "",
"details" : "",
"created" : "2012-08-16T16:51:29.000-06:00",
"anyoneCanAddSelf" : false,
"title" : "Temperature - 78",
"guestsCanModify" : false
}

 

USAGE

Code Block
languagejavascript
themeConfluencelanguagejavascript
use module a8x114 alias myalias

 

CONFIGURATION OPTIONS:

  • url

Configure with the URL to the calendar in question, either using a public URL or a private URL.

To get the URL, click the ICAL button on the "detail" page in GCal. Click on the "XML" button. 
You'll get a calendar URL ends in "basic"

FUNCTIONS:

  • onnow(title)
  • now(title)
  • next(title)
  • verbaldate(d)

...