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.
system
Closed
July 7, 2020, 3:44pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.