API wrapper for Nico Nico Douga.
- Ruby 1.9.3
- Ruby 2.0.0-p0
Add this line to your application's Gemfile:
gem 'smiling'
And then execute:
$ bundle
Or install it yourself as:
$ gem install smiling
Fetch video information via getthumbinfo API.
video = Smiling.video('sm9')
puts video.title
video.tags['jp'] do |tag|
# tag is an instance of Smiling::Video
print tag.value
puts ' (lock)' if tag.locked?
end
See also: Nico Nico Douga API
- 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