protected function buildUrl($url, $params = [])
    {
        if ($this->useOauth) {
            $params['access_token'] = $this->getAccessToken();
        }
        $params = http_build_query($params);
        return $this->baseUrl . $url . '?' . $params;
    }