lots of progress
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use JetBrains\PhpStorm\NoReturn;
|
||||
use ZipArchive;
|
||||
|
||||
class FetchIgdbDumps extends Command
|
||||
@@ -68,6 +69,7 @@ class FetchIgdbDumps extends Command
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
#[NoReturn]
|
||||
private function fetchDumps(string $type, int $limit, int $offset, string $outputDir, IgdbAuthService $authService): void
|
||||
{
|
||||
$endpoint = self::ENDPOINTS[$type];
|
||||
@@ -81,13 +83,13 @@ class FetchIgdbDumps extends Command
|
||||
$accessToken = $authService->getAccessToken();
|
||||
|
||||
$response = Http::withHeaders([
|
||||
'Client-ID' => config('services.igdb.credentials.client_id'),
|
||||
'Client-ID' => config('igdb.credentials.client_id'),
|
||||
'Authorization' => 'Bearer ' . $accessToken,
|
||||
])->post($endpoint, [
|
||||
'fields' => $fields,
|
||||
'limit' => $limit,
|
||||
'offset' => $offset,
|
||||
'where' => 'rating_count > 0',
|
||||
// 'where' => 'rating_count > 0',
|
||||
]);
|
||||
|
||||
if (!$response->successful()) {
|
||||
|
||||
Reference in New Issue
Block a user