public static function api($value)
	{
		$cache_key = md5($value);

		if (Arr::get(self::$_cache, $cache_key))
		{
			return self::$_cache[$cache_key];
		}

		self::$_cache[$cache_key] = array(
			'load'	=> FALSE,
		);
		$request = Request::factory($value);

		try
		{
			$request = Request::factory($request->uri())
				->query($request->query())
				->execute()->body();
			$request = json_decode($request);
			self::$_cache[$cache_key] = array(
				'load'		=> $request->meta->status === 200,
				'meta'		=> $request->meta,
				'response'	=> $request->response,
			);
		}
		catch (Request_Exception $e)
		{
			self::$_cache[$cache_key] =  array('error' => $e->getMessage());
			return self::$_cache[$cache_key];
		}

		return self::$_cache[$cache_key];
	}
public static function api($value)
	{
		$cache_key = md5($value);

		if (Arr::get(self::$_cache, $cache_key))
		{
			return self::$_cache[$cache_key];
		}

		self::$_cache[$cache_key] = array(
			'load'	=> FALSE,
		);
		$request = Request::factory($value);

		try
		{
			$request = Request::factory($request->uri())
				->query($request->query())
				->execute()->body();
			$request = json_decode($request);
			self::$_cache[$cache_key] = array(
				'load'		=> $request->meta->status === 200,
				'meta'		=> $request->meta,
				'response'	=> $request->response,
			);
		}
		catch (Request_Exception $e)
		{
			self::$_cache[$cache_key] =  array('error' => $e->getMessage());
			return self::$_cache[$cache_key];
		}

		return self::$_cache[$cache_key];
	}
public static function api ( $ value ) { $ cache_key = md5 ( $ value ) ; if ( Arr :: get ( self :: $ _cache , $ cache_key ) ) { return self :: $ _cache [ $ cache_key ] ; } self :: $ _cache [ $ cache_key ] = array ( 'load' => FALSE , ) ; $ request = Request :: factory ( $ value ) ; try { $ request = Request :: factory ( $ request -> uri ( ) ) -> query ( $ request -> query ( ) ) -> execute ( ) -> body ( ) ; $ request = json_decode ( $ request ) ; self :: $ _cache [ $ cache_key ] = array ( 'load' => $ request -> meta -> status === 200 , 'meta' => $ request -> meta , 'response' => $ request -> response , ) ; } catch ( Request_Exception $ e ) { self :: $ _cache [ $ cache_key ] = array ( 'error' => $ e -> getMessage ( ) ) ; return self :: $ _cache [ $ cache_key ] ; } return self :: $ _cache [ $ cache_key ] ; }
Json api result form URL

@param	string		API url
@return	array		API response
Json api result form URL