Integrating with the rest-client gem is a one-liner. This will print out one of your Statica IPs:


require "rest-client"

RestClient.proxy = ENV["STATICA_URL"] if ENV["STATICA_URL"]

res = RestClient.get("")

puts "Your IP was: #{res.body}"


We have examples for other common libraries as well, but if you can't find what you are looking for just send us a support ticket and we'll get one sent to you.