Sha256: 112e163f2e5b71c7c3217fa4a88666101bcb2d899d3e761487465bd0db2f1baf
Contents?: true
Size: 900 Bytes
Versions: 8
Compression:
Stored size: 900 Bytes
Contents
require 'page_glimpse/exceptions' require 'page_glimpse/image_parser' require 'page_glimpse/json_parser' module PageGlimpse class API < Relax::Service #:nodoc: THUMBNAIL_EXISTS = 'yes' QUEUE_SUCCESS = 'success' defaults do parameter :devkey, :required => true parameter :url, :required => true end endpoint 'http://images.pageglimpse.com/v1' do action :thumbnail, :url => '/thumbnails' do parameter :size parameter :root parameter :nothumb parser ImageParser do end end action :queue, :url => '/thumbnails/request' do parser JsonParser do end end action :exist?, :url => '/thumbnails/exists' do parameter :size parser JsonParser do end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems