Getting started with the rest-client gem

    Table of contents

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

    require "rest-client"
    RestClient.proxy = ENV["QUOTAGUARD_URL"] if ENV["QUOTAGUARD_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 the right one sent to you.

    Ready to Get Started?

    Get in touch or create a free trial account