Sha256: 6c8796f15628a764c08deaeca898deb6dd9fc6d1abc02d5dfdceeb2bbdb94e94
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module Onfido class LivePhoto < Resource # with open-uri the file can be a link or an actual file def create(applicant_id:, file:, **payload) validate_file!(file) payload[:applicant_id] = applicant_id payload[:file] = file post(path: 'live_photos', payload: payload) end def find(live_photo_id) get(path: "live_photos/#{live_photo_id}") end def download(live_photo_id) get(path: "live_photos/#{live_photo_id}/download") end def all(applicant_id) get(path: "live_photos?applicant_id=#{applicant_id}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems