go-twitch/api/schedule/get_channel_icalendar.go

16 lines
418 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package schedule
import (
"context"
"net/url"
"go.fifitido.net/twitch/api/endpoint"
)
// 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}})
}