up
This commit is contained in:
@@ -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";
|
||||
Reference in New Issue
Block a user