Skip to content

numidiasoft/simple-delicious

Repository files navigation

Simple::Delicious

Simple delicious client API.

Installation

Add this line to your application's Gemfile:

gem 'simple-delicious'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple-delicious

Usage

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"}

Examples:

Tags:

  1. 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 )
  1. 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")
  1. Delete a specific Tag:
base = Simple::Delicious::Base.new("login", "password")
response = base.tags :action => "delete", :tag => "git"

Bundles:

  1. Get all bundles:
base = Simple::Delicious::Base.new("login", "password")
response = base.bundles

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Simple Delicious api client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages