Skip to content

lassebunk/shortservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

== About ShortService
The ShortService gem is a layer for talking to the ShortService API (http://shortservice.lassebunk.dk/api), which makes it easy to shorten URLs with any service.

== Installing ShortService
$ sudo gem install shortservice

== Using ShortService
Require ShortService:
  require 'rubygems'
  require 'shortservice'

In your Ruby code, to shorten a URL:
  ShortService::Service.find_by_key("bitly").shorten("http://github.com")

To get a list of all services:
  ShortService::Service.all.each { |s| puts s.key + ": " + s.name}

About

A layer for talking to the ShortService API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages