This commit is contained in:
lizandrogd
2026-01-21 11:58:17 -05:00
parent 932820d02d
commit c7d0b8b70c
11 changed files with 250 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
$mediaId = $argv[1] ?? '1379066300634610';
$opts = ['http' => ['method' => 'GET', 'header' => "Accept: application/json\r\n"]];
$ctx = stream_context_create($opts);
$url = "http://localhost/whatsapp/api/get_media.php?id=" . urlencode($mediaId);
$s = @file_get_contents($url, false, $ctx);
if ($s === false) {
echo "Request failed\n";
exit(1);
}
echo $s . "\n";