"""API Client for ows-abacus-event.""" import requests class AbacusEventAPIClient: """API Client for ows-abacus-event.""" def __init__(self, base_url, headers): """Initialize ows_ledger_APIClient class.""" self.base_url = base_url self.headers = headers def post_abacus_event(self, body): """Execute a POST against /abacus-event endpoint.""" endpoint = '{}/abacus-event'.format(self.base_url) return requests.post(endpoint, headers=self.headers, json=body)