lib/seam/clients/events.rb in seamapi-1.14.0 vs lib/seam/clients/events.rb in seamapi-1.15.0

- old
+ new

@@ -3,25 +3,25 @@ module Seam module Clients class Events < BaseClient def get(event_id: nil, event_type: nil, device_id: nil) request_seam_object( - :get, + :post, "/events/get", Seam::Event, "event", - params: {event_id: event_id, event_type: event_type, device_id: device_id}.compact + body: {event_id: event_id, event_type: event_type, device_id: device_id}.compact ) end def list(since: str, event_type: nil, event_types: nil, device_id: nil, device_ids: nil) request_seam_object( - :get, + :post, "/events/list", Seam::Event, "events", - params: {event_type: event_type, event_types: event_types, device_id: device_id, - device_ids: device_ids, since: since}.compact + body: {event_type: event_type, event_types: event_types, device_id: device_id, + device_ids: device_ids, since: since}.compact ) end end end end