public
Description: HTTParty interface for Portrait webservice
Homepage: http://jordan.mckible.com
Clone URL: git://github.com/jmckible/portrait_party.git
name age message
file MIT-LICENSE Tue Jun 23 14:05:36 -0700 2009 MIT license. [jmckible]
file README.rdoc Tue Jun 23 15:07:52 -0700 2009 Documentation typos. [jmckible]
file portrait.rb Thu Jun 25 14:55:41 -0700 2009 Portrait.capture returns the path. [jmckible]
README.rdoc

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