protected function buildUri($endpoint, $options = [])
    {
        if ($this->token !== '') {
            $options['auth'] = $this->token;
        }

        return $this->base.'/'.ltrim($endpoint, '/').'.json?'.http_build_query($options, '', '&');
    }