Sha256: 96eb8124d75275d0b174a9bfb964975988dc6989140aa2c4ae89b083172dfdae

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

# Pixy

Pixy is an API wrapper for Pixiv url shortener - [p.tl](http://p.tl/)

## Installation

```ruby
gem 'pixy'
# gem install pixy
```

## Usage

```ruby
url = Pixy.shorten!(API_KEY, 'https://github.com/narkoz/pixy')
# => #<Pixy::Shorten:0x0000010201bde8 @status="ok", @long_url="https://github.com/narkoz/pixy", @short_url="http://p.tl/Us9R", @counter=20>

url.status
# => "ok"

url.long_url
# => "https://github.com/narkoz/pixy"

url.short_url
# => "http://p.tl/Us9R"

url.counter
# => 20
```

## Copyright

Copyright (c) 2011 Nihad Abbasov
BSD License.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixy-0.0.1 README.md