private function buildUrl($mode, $params = [])
    {
        $urlParams = array_merge(['mode' => $mode, 'apikey' => $this->apiKey, 'output' => 'json'], $params);
        return 'http://' . $this->url . ':' . $this->port . "/api?" . http_build_query($urlParams);
    }
private function buildUrl($mode, $params = [])
    {
        $urlParams = array_merge(['mode' => $mode, 'apikey' => $this->apiKey, 'output' => 'json'], $params);
        return 'http://' . $this->url . ':' . $this->port . "/api?" . http_build_query($urlParams);
    }
private function buildUrl ( $ mode , $ params = [ ] ) { $ urlParams = array_merge ( [ 'mode' => $ mode , 'apikey' => $ this -> apiKey , 'output' => 'json' ] , $ params ) ; return 'http://' . $ this -> url . ':' . $ this -> port . "/api?" . http_build_query ( $ urlParams ) ; }
Url builder helper

@param String $mode
@param array  $params

@return string
Url builder helper