Class: Identisure::Document::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/identisure/document.rb

Instance Method Summary collapse

Instance Method Details

#download(id) ⇒ Object



26
27
28
# File 'lib/identisure/document.rb', line 26

def download(id)
  @transport.get_raw("/v3/document/#{id}")
end

#upload(data, filename, mime_type: 'application/pdf') ⇒ Object



22
23
24
# File 'lib/identisure/document.rb', line 22

def upload(data, filename, mime_type: 'application/pdf')
  UploadResponse.from_json(@transport.post_multipart('/v3/document', data, filename, mime_type))
end