Sha256: 44432a08b2d968e2f049958229a49a85322774b48441fc84e084e56038657d31

Contents?: true

Size: 628 Bytes

Versions: 10

Compression:

Stored size: 628 Bytes

Contents

require 'json'
require 'net/http'
require 'uri'
require 'logger'

module Direct7
  class NUMBER_LOOKUP
    def initialize(client)
      @client = client
      @log = Logger.new(STDOUT) # You can customize the log destination as needed
    end

    def search_number_details(recipient)
      """
      Search number details.
      :param params: dict - The search request parameters.
      :return:
      """
      params = {
        'recipient' => recipient
      }
      response = @client.post(@client.host, '/hlr/v1/lookup',true, params= params)
      @log.info('Search request is success.')
      response
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
direct7-0.0.18 lib/direct7/number_lookup.rb
direct7-0.0.17 lib/direct7/number_lookup.rb
direct7-0.0.16 lib/direct7/number_lookup.rb
direct7-0.0.13 lib/direct7/number_lookup.rb
direct7-0.0.12 lib/direct7/number_lookup.rb
direct7-0.0.11 lib/direct7/number_lookup.rb
direct7-0.0.10 lib/direct7/number_lookup.rb
direct7-0.0.9 lib/direct7/number_lookup.rb
direct7-0.0.8 lib/direct7/number_lookup.rb
direct7-0.0.1 lib/direct7/number_lookup.rb