public function generateUrl($call, array $params = array())
    {
        $url = $this->baseUrl . '/' . $this->version . '/' . $call;
        if (count($params) > 0) {
            $queryString = http_build_query($params, null, '&');
            $queryString = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $queryString);
            $url .= '?' . $queryString;
        }

        return $url;
    }
public function generateUrl($call, array $params = array())
    {
        $url = $this->baseUrl . '/' . $this->version . '/' . $call;
        if (count($params) > 0) {
            $queryString = http_build_query($params, null, '&');
            $queryString = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $queryString);
            $url .= '?' . $queryString;
        }

        return $url;
    }
public function generateUrl ( $ call , array $ params = array ( ) ) { $ url = $ this -> baseUrl . '/' . $ this -> version . '/' . $ call ; if ( count ( $ params ) > 0 ) { $ queryString = http_build_query ( $ params , null , '&' ) ; $ queryString = preg_replace ( '/%5B[0-9]+%5D/simU' , '%5B%5D' , $ queryString ) ; $ url .= '?' . $ queryString ; } return $ url ; }
generates a url for an api request

@param       $call
@param array $params

@return string
generates a url for an api request