This handler uses the Google API library to share a Google Calendar either publicly or privately. Using a Service Account Email and the corresponding P12 file (see below for details about obtaining these values) to authenticate the handler against Google's API. A call is then made to exchange the Calendar Name for a unique Calendar Id. After retrieving that, another call is made to Google to complete the sharing of the calendar. A list of possible calendar access types can be found below. Any errors that occur during the posting process will be caught and re-raised by this handler.
[none] Provides no access [freeBusyReader] Provides read access to free/busy information [reader] Provides read access to the calendar. Private events appear with details hidden. [writer] Provides read and write access to the calendar. Private events appear with details available. [owner] Provides ownership access to the calendar.
To enable the Calendar API and get the Service Account Email and P12 File
1. Navigate to the 'Google Developers Console'
2. Click on the Create Project button (or if you have an existing project that you wish to keep using, click on the project name.)
3. Go to the APIs page and turn on the Calendar service
4. Go to the Credentials page and Create a new Client Id
* Select 'Service Account'
* Select 'P12 Key' for Key type
5. When you click 'Create Client Id', a P12 File will be downloaded
6. Remember the Email for the Service Account that you just created
To add the P12 file to the handler:
1. Download the .zip file for the handler
2. Expand the zipped directory, and place the P12 File that you just downloaded into the resources folder
* Found at google_apps_calendar_create_v3 => handler => resources
* Remember the name of the P12 File, it will be needed later
3. Zip the directory back up and upload to Kinetic Task
The Service Account Email and P12 File name will be used as info values for the handler, and will be used to get access to the Google Services
Name | Description |
---|---|
Calendar Name | The name of the calendar that will be shared. |
Sharing Scope | The scope for who the calendar will be shared with. The scope will default to public access, but you can also limit it to user, group, or domain. |
Recipient | If the scope is not public, the username, group name or domain name for who the calendar will be shared with. |
Calendar Access | The access type that the recipient will have to the calendar. |
Name | Description |
---|---|
Calendar Name | Example Calendar |
Sharing Scope | user |
Recipient | test.user@acme.com |
Calendar Access | owner |
This handler does not return any results.
GoogleAppsSaCalendarShare_V1 (2015-05-28)
Learn more about the Kinetic Data Enterprise Workflow Platform Check it out