Hello, I’m trying to subscribe to the streams_changed topic event using wordpress as a platform. I’m not using the REST API plugin, just vanilla wordpress, however I’m a little confused with this:
Subscription verify — If your subscription request passes review, Twitch sends you a request to confirm that you requested the subscription. To confirm, respond to the request with the challenge token provided (
hub.challenge ) in the query parameters and an HTTP success (2xx) response code. Important Note The challenge token should be echoed back in a simple
text/plain response, without any JSON/HTML wrapping.
What should the response actually look like? Wordpress have helper functions like wp_send_json, wp_send_sucess_json, wp_remote_post (which sends a post request, etc.