php - Twitch API Live Callback Service -


i integrating twitch user account api platform , had through api see if there callback section of sort send update server when user starts streaming, can't seem find reference one.

is there services offer sort of thing? if not, best way of running regular checks on of users in database see when streaming, of course doing alone kill server database queries, i'm stuck go now.

what looking receive callback , create post in social feed user has started streaming.

based on discussions @ links below, api doesn't support webhooks , won't anytime soon. instead, expect use polling. set worker process makes requests periodically, such every 5 minutes, creates appropriate social feed posts, etc. can batch them if have bunch of channels check (exaple from github issue):

https://api.twitch.tv/kraken/streams?channel=riotgames,dota2ti,machinima,esltv_hearthstone

https://github.com/justintv/twitch-api/issues/211

https://discuss.dev.twitch.tv/t/notifications-using-twitch-api-and-php/1009


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -