Not getting web.challenge

hi, im testing twitch webhooks via Postman app… im trying to subscribe to a topic: stream changed… im able to get response 202 but on my callback page i cant get web.challenge token…

this is how my php file looks like:

<?php
$myfile = fopen("events.txt", "w") or die("Unable to open file!");
fwrite($myfile, $_REQUEST["hub.challenge"]);
fclose($myfile);

when i POST the subscribe event, the events.txt file creates but the hub.challenge token is always empty

alright… this $_REQUEST[“hub_challenge”] works… changed . to _

Yeah thats a PHP gotcha.

It auto replaces . in _REQUEST/_POST with a _

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.