Twitch Drops Notification Step

Hi everyone,

I followed all the steps of the drop guide and VHS is working fine but I stayed at the last step.

{
“campaign_id”:“1902da2b-f666-4ccb-b024-0b7051b85704”,
“client_id”:"*******************************",
“game_watched”:“VHS RETURNED GAME NAME”,
“broadcaster_id”:“547729655”,
“item_id”:“160b840d-933c-9d8c-b9ba-5a4229180652”,
“reason”:“watching”,
“users”:[
“253002856”,
“91317099”
]
}

This is my “manifest-file.json”. What i missing?

i called this url, i put the json file and it returned 200 but notification isn’t came.

=> (https://twitch-ds-vhs-drops-granted-uploads-us-west-2-prod.s3.us-west-2.amazonaws.com/prxkie1ibwgbbvnayo2acb33i8tbh8/2020/06/29/11-40-07-e3f11798-41a1-4ee3-8db9-2f4063a7827b-1593430807.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAXTZNCDWDVN7GU6ZD%2F20200629%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20200629T114007Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHYaCXVzLXdlc3QtMiJHMEUCICNDDVRg5cy6uVgwugDEFGlGZy0xoY5aGlMvfAE0MVbhAiEAjvOBlDllhD7g5oA9eQ7QbZJEvn%2Ft5hbjGV7A88Bx9jcqvQMI%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw1MjM1NDM2NDk2NzEiDA9tCq4mlBIMjNUEWCqRA6yZNqPEZFsQTC1%2B2jd2eDCmaSlEpmTWpYf0Y36eTe0KRn%2BBtbRXb4wlY84enE6%2FMfe5ykrJXIpPFE9Gm%2Btwtp3flg71lMw7iGYWmnxKDUEdBBTp6XsJt0IAniXLMj1ciJSWSz6aJX4sApQ8EWgXc5IuBuXgoZcEsVKWLHCdFqJyo1J4oN%2B6lqqzHVWK5kSu84rahwYEpqbtqWXRXN2HKpywAmLR0YrsXNAoszZukTknXY86L7Yw%2FKs9lNfMomMzj0v07CRpdOaqaPNpjwTIq59nxH0py2GCTaCcOSQSNP2BAg3kldWEJeOYZGPKisdoWNyKM3%2BlImbGKDARtKKmVOc%2BuM0Ki7CjNRIjtBAADb4cRscbNp8SB%2BdpQS%2FZ768b4V6C%2Bds3ESljIbTJVgcrCYKUP9aEG8RzPn3lsUwzsBRPBlNF%2B%2BwIDKuXXwxAB0AUbL571sk6GmEL6USbDcdoy41M%2BI58%2FfTK1zCdoDXVHgWI8%2FPr4e8fh052SVXBYJjKFL7Z7cGX4hz%2BnFQJdrCfF%2FnJMP%2F75fcFOusBYt41tVgYnLtBAx2JImbKycl%2Bq%2Bl5KAb9EZwuPuXHBtyCyP0d%2BbmvshMYC7OTElE0RB3Frq%2FauxwKdIzSFOmAu13lcyI4SBsgP%2BDHheYRX4EvXN0%2FFJpmamLpov7%2Bxi3yWoePB5XH0nycr11ggJr%2FQhfaB2yOqNbax1H7NhqaRBrbPqTvPWBMh219VtOl1ahlEA8FN9DDJ%2BIAs4v5TnfA3PMtMqv3A6eBbDLSm1Jiah92Du1FAYDw2YhsOYHqWTYtLH9rJf2V87ul6qtw%2BHdcAYzNdCWjHNbDGfVPfnrybSaHahunNaBol3L8zA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=c2a032e3b3c82bf1c8f128de30d87a52d34e900bf615b80bbea9ba65de034946)

Your last 5 files were empty (0 bytes) - times starting with 11-05-05, 11-06-34, 11-08-43, 11-12-18, and 11-40-07.
The one before that (starting with 10-55-28) had a leading @ before the json.

I believe your problem for the earlier file (starting with 10-43-25) is that you’re passing in the twitch ID and not the established game user ID (whatever was set for identifier from https://dev.twitch.tv/docs/v5/reference/users/#create-user-connection-to-viewer-heartbeat-service-vhs - it looks like you’re using the Twitch user name?)

Yes, im using TWITCH Username for vhs identifier. Do I need to use the user ID?

When I sent a request with postman, the notifications worked, but I think I have an error in my php code. Where am i doing wrong?

$secondPostUrl = str_replace(’\u0026’,’&’,$result[“data”][0][“url”]);
$ch = curl_init($secondPostUrl);
$post = array (
‘@’.DIR . ‘/manifest-file.json’
);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “PUT”);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$output				= curl_exec($ch);
$http_code			= curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo "HTTP CODE OF UPLOAD URL : ".$http_code;

It’s okay. I solved it. Thank you for interest. :blush:

Glad it worked :slight_smile:

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