protected function buildUrl($url, $params = [])
    {
        if ($this->useOauth) {
            $params['access_token'] = $this->getAccessToken();
        }
        $params = http_build_query($params);
        return $this->baseUrl . $url . '?' . $params;
    }
protected function buildUrl($url, $params = [])
    {
        if ($this->useOauth) {
            $params['access_token'] = $this->getAccessToken();
        }
        $params = http_build_query($params);
        return $this->baseUrl . $url . '?' . $params;
    }
protected function buildUrl ( $ url , $ params = [ ] ) { if ( $ this -> useOauth ) { $ params [ 'access_token' ] = $ this -> getAccessToken ( ) ; } $ params = http_build_query ( $ params ) ; return $ this -> baseUrl . $ url . '?' . $ params ; }
Builds request URL
@author Adegoke Obasa <goke@cottacush.com>
@param $url
@param array $params
@return string
@throws HttpClientException
Builds request URL