2024-03-03 16:30:10 -05:00
|
|
|
|
package schedule
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"net/url"
|
2024-03-07 20:52:42 -05:00
|
|
|
|
|
|
|
|
|
"go.fifitido.net/twitch/api/endpoint"
|
2024-03-03 16:30:10 -05:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Gets the broadcaster’s streaming schedule as an iCalendar.
|
|
|
|
|
//
|
|
|
|
|
// The Client-Id and Authorization headers are not required.
|
2024-03-07 20:52:42 -05:00
|
|
|
|
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
|
|
|
|
}
|