Simple delicious client API.
Add this line to your application's Gemfile:
gem 'simple-delicious'
And then execute:
$ bundle
Or install it yourself as:
$ gem install simple-delicious
Parameters are uniform across the functions. All calls can accept:
:action is the http operation to call, eg: "/tags/update" would be :action => "update"
:params is a map of parameters to pass, eg, tag=git would be {tag:"git"}
- Get all Tags:
To get all Tags of a specific account:
base = Simple::Delicious::Base.new("login", "password")
base.tags :action => "get" (Possible actions are: get, rename and delete )
- Rename Tag:
To Rename a specific Tag:
base = Simple::Delicious::Base.new("login", "password")
response = base.tags :action => "rename", :old => "oldname", :new => "newname"
Get one tag : eg: (return the git tag)
response.element("tag", "git")
- Delete a specific Tag:
base = Simple::Delicious::Base.new("login", "password")
response = base.tags :action => "delete", :tag => "git"
- Get all bundles:
base = Simple::Delicious::Base.new("login", "password")
response = base.bundles
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request