private function buildUrl($url, $parameters)
    {
        $prams_former = '?';

        foreach ($parameters as $key => $value) {
            $prams_former = $prams_former.$key.'='.$value.'&';
        }

        return $url.substr($prams_former, 0, -1);
    }
private function buildUrl($url, $parameters)
    {
        $prams_former = '?';

        foreach ($parameters as $key => $value) {
            $prams_former = $prams_former.$key.'='.$value.'&';
        }

        return $url.substr($prams_former, 0, -1);
    }
private function buildUrl ( $ url , $ parameters ) { $ prams_former = '?' ; foreach ( $ parameters as $ key => $ value ) { $ prams_former = $ prams_former . $ key . '=' . $ value . '&' ; } return $ url . substr ( $ prams_former , 0 , - 1 ) ; }
build the final URI to be called by the client.

@param $url
@param $parameters

@return string
build the final URI to be called by the client .