Bearsampp / sandbox

R&D Repo for Bearsampp
GNU General Public License v3.0
0 stars 1 forks source link

fetch json #51

Closed github-actions[bot] closed 4 months ago

github-actions[bot] commented 4 months ago

https://github.com/Bearsampp/sandbox/blob/021aebea660d0bae94341b333a6d1981c182a351/core/classes/actions/class.action.quickPick.php#L212


        $jsonFilePath = $bearsamppCore->getResourcesPath() . '/quickpick-releases.json';
        Util::logDebug( 'Fetching JSON file: ' . $jsonFilePath );

        if ( !file_exists( $jsonFilePath ) && Util::checkInternetState() === FALSE ) {
            Util::logError( 'JSON file not found: ' . $jsonFilePath );

            return ['error' => 'JSON file not found'];
        } else {
            // TODO fetch json
        }

        $content = @file_get_contents( $jsonFilePath );
github-actions[bot] commented 4 months ago

Closed in 1d730c5b01a6db8f179fcc9387733682a021c1c0