Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xi-plus/youtube-live-calendar
- Owner: Xi-Plus
- Created: 2022-03-29T09:17:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-18T05:47:31.000Z (over 2 years ago)
- Last Synced: 2024-11-07T12:54:18.479Z (2 months ago)
- Topics: google-app-script, google-calendar, youtube
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
}
```