go-twitch/api/schedule/get_channel_icalendar.go

16 lines
418 B
Go
Raw Normal View History

2024-03-03 16:30:10 -05:00
package schedule
import (
"context"
"net/url"
"go.fifitido.net/twitch/api/endpoint"
2024-03-03 16:30:10 -05:00
)
// Gets the broadcasters streaming schedule as an iCalendar.
//
// The Client-Id and Authorization headers are not required.
func (s *Schedule) GetChannelICalendarURL(ctx context.Context, broadcasterId string) string {
return endpoint.Make(s.baseUrl, "schedule/icalendar", url.Values{"broadcaster_id": {broadcasterId}})
2024-03-03 16:30:10 -05:00
}