Sha256: c6b710cb99aae272d4d5fd9494f903794a0139a40234d27e27b88220927b920c

Contents?: true

Size: 246 Bytes

Versions: 1

Compression:

Stored size: 246 Bytes

Contents

module Shorty
  # The tinyurl.com API. Not much here, undocumented API
  class Tinyurl < SimpleAPI
    include HTTParty
    
    API_URL = 'http://tinyurl.com/api-create.php'
    
    def self.prep_query(url)
      {:url => url}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shorty-0.1.2 lib/shorty/tinyurl.rb