So I get the subscription get verification thing, I echo the hub.challenge in PHP and from that point and on, I think everything is fine.
Now the problem comes after that, I tried subscribing using User Follows to_id=19571641 (which by the time of writing this is a Fortnite streamer with quite alot of viewers.
I get alot of empty POST requests, I try dumped $_POST array into a file every time someone goes on the page, I get alot of requests from an IP which appears to be coming from Amazon, but the $_POST and $_GET is empty (result of var_export is array ( )).
I tried making my application not write the hub.challenge, when I did that I did not get these requests, so my speculation is that I get a request everytime someone follows him, but for some reason I dont get any actual response JSON I can work with.
Any help is appriciated
- Wanni
PS: the curl command I use to subscribe is this: “curl -v -H ‘Client-ID: (removed)’ -X POST ‘https://api.twitch.tv/helix/webhooks/hub?hub.mode=subscribe&hub.topic=https://api.twitch.tv/helix/users/follows?to_id=19571641&hub.callback=http://wannitestserver.esy.es/ozxyredirect/index.php&hub.lease_seconds=120’”