Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xi-plus/youtube-live-calendar

Use Google App Script to create upcoming live events in your Google Calendar
https://github.com/xi-plus/youtube-live-calendar

google-app-script google-calendar youtube

Last synced: 10 days ago
JSON representation

Use Google App Script to create upcoming live events in your Google Calendar

Awesome Lists containing this project

README

        

# youtube-live-calendar
Use Google App Script to create upcoming live events in your Google Calendar

## Setup
Script ID: `1prTvghhm4asQBDa3YpnmGLoCIWeTZV7dQHDFA-UM4vZLZQ9EAU8zkpmx` \
See https://developers.google.com/apps-script/guides/libraries#add_a_library_to_your_script_project

## Getting Started
```js
var subscribedChannels = [
{key: 'CDC', shortName: 'TCDC', id: 'UCyh91eTE9jA3ykg8W3_v3DQ'},
// Add more channels as above
]
// Find your Calendar ID in https://calendar.google.com/calendar/u/0/r/settings
var calendarId = '[email protected]'
var YTLC = YouTubeLiveCalendar.init(calendarId, subscribedChannels)

// Run single channel
function runCDC() {
YTLC.runChannel('CDC')
}

// Run all channels defined in subscribedChannels
function runAllChannels() {
YTLC.runAllChannels()
}

// Use this method to list your subscriptions and find channel ID
function listSubscriptions() {
YTLC.listSubscriptions()
}
```