portrait_party is a wrapper for John Nunemaker’s HTTParty. First you’ll need an account on a portrait instance.
First, setup the Portrait class with your server and credentials
Portrait.url "portrait.mydomain.com" Portrait.authorize 'username', 'password'
Then fire away:
Portrait.capture 'http://domain.tocapture.com', '/directory/to/save/to', 'filename.png'
If you provide an invalid URL, or something goes wrong, Portrait will raise an exception
-
httparty
-
open-uri
-
fileutils
-
multi_json
-
multi_xml