protected function lookup($url)
    {
        $response = $this->http->fetch($url);
        $json = json_decode($response, true);

        if ($json) {
            return array_merge(array('embera_using_fake' => 0), $json);
        }

        return array();
    }
protected function lookup($url)
    {
        $response = $this->http->fetch($url);
        $json = json_decode($response, true);

        if ($json) {
            return array_merge(array('embera_using_fake' => 0), $json);
        }

        return array();
    }
protected function lookup ( $ url ) { $ response = $ this -> http -> fetch ( $ url ) ; $ json = json_decode ( $ response , true ) ; if ( $ json ) { return array_merge ( array ( 'embera_using_fake' => 0 ) , $ json ) ; } return array ( ) ; }
Executes a http request to the given url and
returns an associative array with the fetched data.

@param string $url
@return array

@throws Exception From the Http object only if there is no way
to perform the request or if the response from
the server is empty/invalid.
Executes a http request to the given url and returns an associative array with the fetched data .