- For: section leaders, and the parents they share it with
- You get: a calendar feed of every planned meeting this term, with its activities, in Google, Outlook or Apple Calendar
- Time: about ten minutes
- Scopes:
programme:read
1. Try the request
date, a title, its activities, and an eventId once it has been published. Its notes for leaders are never sent.
2. Add the script
Go to script.google.com and choose New project. Call it Scoutworks programme. Delete what is there, paste the script below and choose Save.Code.gs
3. Add your key
In the script editor, choose Project Settings (the cog), then Script Properties → Add script property. Property:SCOUTWORKS_API_KEY. Value: the sandbox key to try it, or your own key.
4. Publish it and subscribe
Publish the script as a web app and subscribe to its address exactly as Events in your calendar does: Deploy → New deployment → Web app, Execute as: Me, Who has access: Anyone, then add the/exec address to your calendar from URL.
For one section, add ?plan= and a word from the plan’s name: …/exec?plan=cubs.
5. Switch to your group
In the script, changeapi-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs programme:read and nothing else. After a change, choose Deploy → Manage deployments → Edit, set Version to New version and choose Deploy, so the address stays the same.
Variations
- Show the badge work. Each meeting’s
badgeRequirementslists the badge requirements it covers. Add them to the description so parents know what their child is working towards. - Longer meetings. Change
MEETING_MINUTESto your section’s meeting length.
If something goes wrong
See Errors for every code. A403 means the key does not have programme:read.