Documentation

Code Examples & Libraries

Rails Gem

You will need the peepshot gem for drop-in integration with Rails. Installation is simple.

sudo gem install peepshot

Review the README for setup instructions and examples.

Ruby

require “digest/md5”
“http://api.peepshot.com/v1/#{api_key}/#{Digest::MD5.hexdigest(api_secret + url)}/400×300?url=#{url}”

PHP

If you’re looking for something ready to drop in your application, you can use this gist of code: