/** * Test the submitted API key using a dummy TMDb instance to fetch * API's configuration. Return the request result array. * * @since 1.0 * * @param string $key API Key * * @return array API configuration request result */ private static function check_api_key($key) { $tmdb = new TMDb($config = true, $dummy = false); $check = $tmdb->checkApiKey($key); return $check; }