'Send an authenticated request to the Twitter API.'

@api.model
def _request(self, website, url, params=None):

    access_token = self._get_access_token(website)
    if params:
        params = werkzeug.url_encode(params)
        url = ((url + '?') + params)
    try:
        request = Request(url)
        request.add_header('Authorization', ('Bearer    %s' % access_token))
        return json.load(urlopen(request, timeout=URLOPEN_TIMEOUT))
    except HTTPError as e:
        _logger.debug('Twitter    API    request    failed    with    code:    %r,    msg:    %r,    content:    %r', e.code, e.msg, e.fp.read())
        raise
