This commit is contained in:
lizandrogd
2026-01-21 12:20:46 -05:00
parent 6cec747ae3
commit 901d51c82f
11 changed files with 363 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
require_once __DIR__ . '/../config/config.php';
require_once __DIR__ . '/../classes/MediaService.php';
$mediaId = $argv[1] ?? null;
if (!$mediaId) { echo "Usage: php test_media_store.php <mediaId>\n"; exit(1); }
$ms = new MediaService();
try {
$res = $ms->fetchAndStoreFromGraph($mediaId, date('Y/m'));
echo json_encode($res, JSON_PRETTY_PRINT) . "\n";
} catch (Exception $e) {
echo "Error: " . $e->getMessage() . "\n";
}