Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 638 Bytes

README.rdoc

File metadata and controls

22 lines (14 loc) · 638 Bytes

portrait_party

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

Dependencies

  • httparty

  • open-uri

  • fileutils

  • multi_json

  • multi_xml