Project

denglu

0.0
No commit activity in last 3 years
No release in over 3 years
NONE OFFICIAL
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Denglu

denglu library provides access to Denglu, this is unofficial ruby implementation.

Installation

gem install denglu

Usage

Initialize the comment

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:...>

List comments

comment.list
#=> [{"postid" => ..., "content" => ..., "mediaID" => ..., "createTime" => ..., "state" => ..., "commentID" => ..., "parentID" => ..., ...},
#    {...}]

Count comments

comment.total
#=> [{"id" => ..., "count" => ..., "url" => ...},
#    {...}]

See also

Copyright

Copyright (c) 2012 Spring MC. See LICENSE for details.