Method: ToopherAPI#authenticate
- Defined in:
- lib/toopher_api.rb
#authenticate(pairing_id, terminal_name = '', action_name = '', options = {}) ⇒ AuthenticationStatus
Authenticate an action with Toopher
87 88 89 90 91 92 93 94 |
# File 'lib/toopher_api.rb', line 87 def authenticate(pairing_id, terminal_name = '', action_name = '', = {}) parameters = { 'pairing_id' => pairing_id, 'terminal_name' => terminal_name } action_name.empty? or (parameters['action_name'] = action_name) return AuthenticationStatus.new(post('authentication_requests/initiate', parameters.merge())) end |