0.01
No commit activity in last 3 years
No release in over 3 years
hatena-bookmark is simple Hatena::Bookmark AtomAPI library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.4
>= 0
~> 2.3.0

Runtime

~> 0.3.1
~> 0.4.5
 Project Readme

hatena-bookmark

はてなブックマークAtomAPIを手軽に使えるようにするやつです。
OAuthに必要なtokenとかはHatena Developer Centerを参考にして作ってください。

Install

gem install hatena-bookmark

Exapmle

require 'hatena-bookmark'

hatebu = Hatena::Bookmark.new(
    consumer_key:    'examplembAdCJpQ==',
    consumer_secret: 'examplePcepenTfulWNiQfohCuw=',
    request_token:   'exampleuydlgZg==',
    request_secret:  'exampleEADUA2F4cMecY8Vlx+eY='
    )

hatebu.create(:url => 'http://www.example.com/', :comment => 'ブコメ〜〜')

puts  hatebu.feed

Requirement

gem "crack", "> 0.3.1"
gem "oauth", "
> 0.4.5"

Copyright

Copyright (c) 2011 kkosuge under the WTFPL license.
See LICENSE.txt for further details.