public function getApis()
    {
        if (empty($this->theApis)) {
            $response = Json::decode(file_get_contents(self::DISCOVERY_URL), false);

            $theApis = [];
            foreach ($response->items as $item) {
                if (!isset($theApis[$item->name])) {
                    $theApis[$item->name] = [];
                }
                $theApis[$item->name][$item->version] = $item;
            }
            ksort($theApis);

            $this->theApis = $theApis;
        }

        return $this->theApis;
    }
public function getApis()
    {
        if (empty($this->theApis)) {
            $response = Json::decode(file_get_contents(self::DISCOVERY_URL), false);

            $theApis = [];
            foreach ($response->items as $item) {
                if (!isset($theApis[$item->name])) {
                    $theApis[$item->name] = [];
                }
                $theApis[$item->name][$item->version] = $item;
            }
            ksort($theApis);

            $this->theApis = $theApis;
        }

        return $this->theApis;
    }
public function getApis ( ) { if ( empty ( $ this -> theApis ) ) { $ response = Json :: decode ( file_get_contents ( self :: DISCOVERY_URL ) , false ) ; $ theApis = [ ] ; foreach ( $ response -> items as $ item ) { if ( ! isset ( $ theApis [ $ item -> name ] ) ) { $ theApis [ $ item -> name ] = [ ] ; } $ theApis [ $ item -> name ] [ $ item -> version ] = $ item ; } ksort ( $ theApis ) ; $ this -> theApis = $ theApis ; } return $ this -> theApis ; }
Fetches the Google API list

@return array
Fetches the Google API list