lib/shodan/clients/base.rb
# Perform a direct POST HTTP request to the REST API.
Perform a direct POST HTTP request to the REST API.
Perform a direct POST HTTP request to the REST API .
def post(path, **params)
        uri = URI("#{base_url}#{path}?key=#{key}")
        req = Net::HTTP::Post.new(uri)
        req.content_type = "application/json"
        req.body = params.to_json
        request req
      end
def post ( path , ** params ) uri = URI ( "#{base_url}#{path}?key=#{key}" ) req = Net :: HTTP :: Post . new ( uri ) req . content_type = "application/json" req . body = params . to_json request req end
Perform a direct POST HTTP request to the REST API.
Perform a direct POST HTTP request to the REST API .
path
params