DocumentationRuby SDK

Ruby SDK

Ruby SDK (coming soon).

Coming soon

The Ruby SDK is in progress. Use the REST API for now.

REST example (Net::HTTP)

require "net/http"
require "json"

uri = URI("https://api.ssapi.com/v1/capture")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

payload = {
  url: "https://example.com",
  format: "png",
  full_page: true
}

request = Net::HTTP::Post.new(uri.path)
request["Content-Type"] = "application/json"
request["X-Access-Key"] = "your-key"
request.body = JSON.dump(payload)

response = http.request(request)
puts response.body
Updated 1 day ago
Did this page help you?