examples/get_hit.rb
#!/usr/bin/env ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'kempelen'
require 'httparty'
if ARGV.length < 3
puts "get_hit.rb <ACCESS_KEY> <SECRET_KEY> <HIT_ID>"
exit
end
@client = Kempelen::API::Client.new(ARGV[0], ARGV[1], :production)
@client.debug_output = $stdout
@operation = Kempelen::API::Operations::GetHit.new(@client, ARGV[2])
get_hit_response = @operation.perform_operation
puts get_hit_response.inspect