Navigation Menu

Skip to content

growcn/dljbz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dljbz

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'dljbz'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dljbz

Usage

create rails file: config/initializers/dljbz.rb

  Dljbz.api_key = 'api_key' # from: http://dlj.bz/dashboard/api_key
  url = Dljbz::V2::Short.request('http://www.sina.com.cn')
  => {"short"=>"http://dlj.bz/H0Jo6e", "url"=>"http://www.sina.com.cn"}

Contributing

  1. Fork it ( https://github.com/growcn/dljbz )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Small library for dlj.bz URL Shortener API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published