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