Skip to content

techvalidate/portrait_party

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

HTTParty interface for Portrait webservice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages