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