Overview

A simple Get request in ruby

Note- Use https:// in the url.

require 'net/http'
response = URI('https://unfurl.io/api/v2/preview?api_token=yourapitoken&url=https://www.google.com')
Net::HTTP.get(response)