Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/narkoz/pixy
API wrapper for Pixiv url shortener
https://github.com/narkoz/pixy
pixiv ruby-gem
Last synced: 3 months ago
JSON representation
API wrapper for Pixiv url shortener
- Host: GitHub
- URL: https://github.com/narkoz/pixy
- Owner: NARKOZ
- License: bsd-2-clause
- Created: 2011-12-15T13:41:01.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T08:59:06.000Z (about 5 years ago)
- Last Synced: 2024-05-01T23:14:55.105Z (8 months ago)
- Topics: pixiv, ruby-gem
- Language: Ruby
- Homepage: https://rubygems.org/gems/pixy
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Pixy [![Build Status](https://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
```sh
gem install pixy
```## Usage
Get an API key here: http://p.tl/key_create.php
```ruby
Pixy.shorten!(API_KEY, 'https://github.com/narkoz/pixy')
# => "http://p.tl/Us9R"Pixy.stats API_KEY
# => {:calls=>12, :limit=>988}pixy = Pixy.shorten(API_KEY, 'https://github.com/narkoz/pixy')
# => #pixy.status
# => "ok"pixy.long_url
# => "https://github.com/narkoz/pixy"pixy.short_url
# => "http://p.tl/Us9R"pixy.counter
# => 20
```## Copyright
Copyright (c) 2011-2013 Nihad Abbasov
BSD License.