Class: Authy::PhoneIntelligence
- Defined in:
- lib/authy/phone_intelligence.rb
Constant Summary
Constants inherited from API
API::MAX_TOKEN_SIZE, API::MIN_TOKEN_SIZE, API::USER_AGENT
Class Method Summary collapse
-
.info(params) ⇒ Object
options: :country_code Numeric calling country code of the country.
-
.verification_check(params) ⇒ Object
options: :country_code Numeric calling country code of the country.
-
.verification_start(params) ⇒ Object
options: :via (sms|call) :country_code Numeric calling country code of the country.
Methods inherited from API
delete_user, register_user, request_phone_call, request_sms, user_status, verify
Methods included from URL
Class Method Details
.info(params) ⇒ Object
options:
:country_code Numeric calling country code of the country.
:phone_number The persons phone number.
25 26 27 |
# File 'lib/authy/phone_intelligence.rb', line 25 def self.info(params) get_request("protected/json/phones/info", params) end |
.verification_check(params) ⇒ Object
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.
18 19 20 |
# File 'lib/authy/phone_intelligence.rb', line 18 def self.verification_check(params) get_request("protected/json/phones/verification/check", params) end |
.verification_start(params) ⇒ Object
options:
:via (sms|call)
:country_code Numeric calling country code of the country.
:phone_number The persons phone number.
8 9 10 11 12 |
# File 'lib/authy/phone_intelligence.rb', line 8 def self.verification_start(params) params[:via] = "sms" unless %w(sms, call).include?(params[:via]) post_request("protected/json/phones/verification/start", params) end |