Try to implement a schedule for Twitch by utilizing the GQL API that used internally.
This implementation will be removed whenever Twitch decided to release it to their Helix API and will be replaced by that.
Schemas
query StreamSchedule($login:String,$startDate:Time) {
user(login:$login) {
channel {
schedule {
id
segments(startingWeekday:"MONDAY",relativeDate:$startDate) {
id
isCancelled
cancelledUntil
startAt
endAt
title
}
}
}
}
}
This will return the current week schedules in UTC starting from Monday to Sunday, the schedules will be identified by the provided ID so it can be updated if it's cancelled.
If the streamer doesn't went live when it's in "startAt" to "endAt" range, it will be set as cancelled and will be ignored.
Try to implement a schedule for Twitch by utilizing the GQL API that used internally.
This implementation will be removed whenever Twitch decided to release it to their Helix API and will be replaced by that.
Schemas
This will return the current week schedules in UTC starting from Monday to Sunday, the schedules will be identified by the provided ID so it can be updated if it's cancelled.
If the streamer doesn't went live when it's in "startAt" to "endAt" range, it will be set as
cancelled
and will be ignored.PR:
To be made