module WhitepagesPro::API::PhoneIntelligence

Constants

API_VERSION

Public Instance Methods

api_key_valid?() click to toggle source
# File lib/whitepagespro/api/phone_intelligence.rb, line 14
def api_key_valid?
        true unless keys[:phone_intelligence_api_key].blank?
        false
end
intelligence_lookup(phone_number, options = {}) click to toggle source
# File lib/whitepagespro/api/phone_intelligence.rb, line 9
def intelligence_lookup(phone_number, options = {})
        api_key = api_keys[:phone_intelligence_api_key]
        call('phone_intel', API_VERSION, :get, {phone: phone_number, api_key: api_key}.merge(options))
end