denglu library provides access to Denglu, this is unofficial ruby implementation.
gem install denglu
require 'denglu'
# Setup global default configurations, see Denglu::Config for more info
Denglu::Config.app_id = 'your-app-id'
Denglu::Config.app_key = 'your-app-key'
or use object initialize params
require 'denglu'
comment = Denglu::Comment.new('your-app-id', 'your-app-key')
#=> #<Denglu::Comment:...>
comment.list
#=> [{"postid" => ..., "content" => ..., "mediaID" => ..., "createTime" => ..., "state" => ..., "commentID" => ..., "parentID" => ..., ...},
# {...}]
comment.total
#=> [{"id" => ..., "count" => ..., "url" => ...},
# {...}]
Copyright (c) 2012 Spring MC. See LICENSE for details.