Class: Onfido::SdkToken

Inherits:
Resource show all
Defined in:
lib/onfido/resources/sdk_token.rb

Constant Summary

Constants inherited from Resource

Resource::REQUEST_TIMEOUT_HTTP_CODE, Resource::VALID_HTTP_METHODS

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Onfido::Resource

Instance Method Details

#create(applicant_id:, **payload) ⇒ Object



5
6
7
8
# File 'lib/onfido/resources/sdk_token.rb', line 5

def create(applicant_id:, **payload)
  payload[:applicant_id] = applicant_id
  post(path: 'sdk_token', payload: payload)
end