Class: VerifyKit::Resources::SMS

Inherits:
Base show all
Defined in:
lib/verify_kit/resources/sms.rb

Instance Method Summary collapse

Instance Method Details

#check(body = {}, params = {}) ⇒ Object



13
14
15
16
17
18
# File 'lib/verify_kit/resources/sms.rb', line 13

def check(body = {}, params = {})
  response = post_request('check-otp', body: body, params: params)
  return error_response(response) unless response.success?

  success_response(response)
end

#send(body = {}, params = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/verify_kit/resources/sms.rb', line 6

def send(body = {}, params = {})
  response = post_request('send-otp', body: body, params: params)
  return error_response(response) unless response.success?

  success_response(response)
end