Class: Authy::PhoneIntelligence

Inherits:
API
  • Object
show all
Defined in:
lib/authy/phone_intelligence.rb

Constant Summary

Constants inherited from API

API::MAX_TOKEN_SIZE, API::MIN_TOKEN_SIZE

Class Method Summary collapse

Methods inherited from API

delete_user, register_user, request_phone_call, request_qr_code, request_sms, user_status, verify

Methods included from URL

included

Class Method Details

.info(params) ⇒ Object

options:

:country_code Numeric calling country code of the country.
:phone_number The persons phone number.


19
20
21
# File 'lib/authy/phone_intelligence.rb', line 19

def self.info(params)
  get_request("protected/json/phones/info", params)
end

.verification_check(params) ⇒ Object

Deprecated.


11
12
13
14
# File 'lib/authy/phone_intelligence.rb', line 11

def self.verification_check(params)
  warn "[DEPRECATION] `PhoneIntelligence.verification_check` is deprecated.  Please use `PhoneVerification.check` instead."
  Authy::PhoneVerification.check(params)
end

.verification_start(params) ⇒ Object

Deprecated.


5
6
7
8
# File 'lib/authy/phone_intelligence.rb', line 5

def self.verification_start(params)
  warn "[DEPRECATION] `PhoneIntelligence.verification_start` is deprecated.  Please use `PhoneVerification.start` instead."
  Authy::PhoneVerification.start(params)
end