Skip to content

icambron/url_to_png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlToPng

A simple, Faraday-extensible library for accessing the url2png JSON API.

Installation

gem 'url_to_png'

Usage

UrlToPng.configure do |config|
  config.api_key = "XXXX"
  config.secret_key = "XXXX"
end

UrlToPng.convert("http://google.com", viewport: "1024x800") #=> a Hashie::Mash

There are all kinds of options, and you can use your own Faraday middleware. I'm sure I'll get around to documenting it.

Tests

There are none! This is not like some philosophical thing; it's just that I didn't bother. So maybe all kinds of things are broken. Who knows?

About

A Ruby client for Url2Png

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages