Class: Leetchi::StrongAuthentication
- Defined in:
- lib/leetchi/strong_authentication.rb
Overview
Get all the strongAuthentication created who need to be validated. It’s important to understand that Leetchi can create himself the request of strongAuthentication, if a user reaches some limits.
Class Method Summary collapse
-
.get ⇒ Object
Get all the strongAuthentication created who need to be validated.
-
.upload(upload_url, file_path) ⇒ Object
Upload your Strong Authentication required files using the Leetchi API.
Class Method Details
.get ⇒ Object
Get all the strongAuthentication created who need to be validated
-
Returns :
-
A array of strongAuthentication objects
-
11 12 13 |
# File 'lib/leetchi/strong_authentication.rb', line 11 def self.get get_request(File.join('strongAuthentication')) end |
.upload(upload_url, file_path) ⇒ Object
Upload your Strong Authentication required files using the Leetchi API
-
Args :
-
upload_url
-> The url to where the StrongAuthentication documents need to be uploaded -
file_path
-> Local path to the file
-
-
Returns :
-
true if the request is done
-
false if the request failed
-
24 25 26 |
# File 'lib/leetchi/strong_authentication.rb', line 24 def self.upload(upload_url, file_path) form_request(upload_url, "StrongValidationDto.Picture", file_path) end |