request('GET', $this->ogBootApiUrl.'/ogboot/v1/oglives/isos', [ 'headers' => [ 'accept' => 'application/json', ], ]); } catch (TransportExceptionInterface $e) { return new JsonResponse( data: 'An error occurred', status: Response::HTTP_INTERNAL_SERVER_ERROR); } $data = json_decode($response->getContent(), true); return new JsonResponse( data: [ 'data' => $data, 'ogLivesInserted' => $ogLivesInserted], status: Response::HTTP_OK); } }