Getting started with the rest-client gem - XL Routes Static

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

    require "rest-client"
    
    RestClient.proxy = ENV["xlroutes_URL"] if ENV["xlroutes_URL"]
    
    res = RestClient.get("http://ip.jsontest.com")
    
    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 the right one sent to you.