/** * Post an event to the REST API and return decoded JSON response. * * @see https://siftscience.com/docs/references/events-api * @see Event * * @param Event $event * @return array */ public function postEvent(Event $event) { $json = $event->withKey($this->apiKey)->toJson(); return $this->send($this->httpClient->post('events', null, $json)); }