class Authy::PhoneVerification

Public Class Methods

check(params) click to toggle source

options:

:country_code Numeric calling country code of the country.
:phone_number The persons phone number.
:verification_code The verification code entered by the user.
# File lib/authy/phone_verification.rb, line 22
def self.check(params)
  warn "Authy Phone Verification has been superseded by the Twilio Verify API. Check https://twil.io/verify-check-ruby to see how to check a verification the Twilio Verify API."
  get_request("protected/json/phones/verification/check", params)
end
start(params) click to toggle source

options:

:via (sms|call)
:country_code Numeric calling country code of the country.
:phone_number The persons phone number.
:custom_code Pass along any generated custom code.
:custom_message Custom Message.
:code_length Length of code to be sent(4-10).
:locale The language of the message received by user.
# File lib/authy/phone_verification.rb, line 11
def self.start(params)
  warn "Authy Phone Verification has been superseded by the Twilio Verify API. Check https://twil.io/verify-start-ruby to see how to start a verification with the Twilio Verify API."
  params[:via] = "sms" unless %w(sms call).include?(params[:via])

  post_request("protected/json/phones/verification/start", params)
end