I called API for Subscribe To API
.
Request
URL : POST https://api.twitch.tv/helix/webhooks/hub
Header :
Client-ID: {myClientId}
Authorization: Bearer {myAccessToken}
{
“hub.mode”:“subscribe”,
“hub.topic”:“https://api.twitch.tv/helix/entitlements/drops?game_id={gameId}&first=1”,
“hub.callback”:“https://{callbackDomain}/webhook”,
“hub.lease_seconds”: 864000
}
Response
HttpStatus 202
And then, I checked Webhook by GetWebHookSubscriptions API
.
But I got a empty data.
Request
URL : GET https://api.twitch.tv/helix/webhooks/subscriptions
Header :
Client-ID: {myClientId}
Authorization: Bearer {myAccessToken}
Response
Body : {“total”:0,“data”:[],“pagination”:{}}