Sha256: f51e5b71a3f089e71f012acaefa43649993c365aa477f67f2a6750bae95d5e68

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

# Pixy

[![Build Status](https://secure.travis-ci.org/NARKOZ/pixy.png)](http://travis-ci.org/NARKOZ/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.2 README.md