Project

url_to_png

0.0
No commit activity in last 3 years
No release in over 3 years
Client library for url2png
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

 Project Readme

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?