def METHOD_NAME(self, resource, resource_id):
    path = '/api/%ss' % resource
    rand = compat_str(random.random())
    return self._download_json(
        'https://www.jamendo.com' + path, resource_id, query={
            'id[]': resource_id,
        }, headers={
            'X-Jam-Call': '$%s*%s~' % (hashlib.sha1((path + rand).encode()).hexdigest(), rand)
        })[0]