Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Add live photos to README
Browse files Browse the repository at this point in the history
  • Loading branch information
hjheath authored and Henry Heath committed Oct 10, 2016
1 parent 8351aae commit 9ecb0d4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,21 @@ The different document types supported by the onfido API are available by import
my_doc_type = DocumentType.BirthCertificate # "birth_certificate"
my_doc_type = DocumentType.BankStatement # "bank_statement"
my_doc_type = DocumentType.Unknown # "unknown"

## Live Photos

The [live_photos](https://documentation.onfido.com/#live-photos) endpoint supports one operation - `create()`:


#### Upload document

applicant_id = "1030303-123123-123123"

live_photo_file = open("selfie.png", "rb")

live_photo = api.LivePhotos.create(applicant_id, document_file, "selfie.png")

You can use any file-like object in place of the live_photo_file parameter, so you needn't save to disk and call `open()` if you have the file in, say, an `BytesIO` object in memory.

## Checks

Expand Down

0 comments on commit 9ecb0d4

Please sign in to comment.