lib/seam/clients/access_codes.rb in seamapi-1.14.0 vs lib/seam/clients/access_codes.rb in seamapi-1.15.0
- old
+ new
@@ -3,14 +3,14 @@
module Seam
module Clients
class AccessCodes < BaseClient
def get(access_code_id)
request_seam_object(
- :get,
+ :post,
"/access_codes/get",
Seam::AccessCode,
"access_code",
- params: {access_code_id: access_code_id}
+ body: {access_code_id: access_code_id}
)
end
def list(device_or_id = nil, access_code_ids: nil)
device_id = device_or_id.is_a?(Seam::Device) ? device_or_id.device_id : device_or_id