def METHOD_NAME(self, ep, rf_id, query, referrer, note=None):
    headers = self.HEADERS.copy()
    headers['Referer'] = referrer
    return self._download_json(
        self.RAINFOCUS_API_URL % ep, rf_id, note=note,
        data=urlencode_postdata(query), headers=headers)