def METHOD_NAME(self, endpoint, params=None):
    if params is None:
        params = {}
    a, b = self.generate_token()
    params['u'] = self.config['username']
    params['t'] = a
    params['s'] = b
    params['v'] = '1.12.0'
    params['c'] = 'beets'
    resp = requests.get('{}/rest/{}?{}'.format(
        self.config['base_url'].get(),
        endpoint,
        urlencode(params))
    )
    return resp