Speedy thing goes in, speedy thing comes out.
* * *
atom-tools 使った。オーサム。
require 'rubygems' require 'atom/service' http = Atom::HTTP.new http.user = 'はてなID' http.pass = 'パスワード' http.always_auth = :wsse #なくてもいいが、あったほうがいい entry = Atom::Entry.new entry.title = '1st post from AtomPub' entry.content = 'Speedy thing goes in, speedy thing comes out.' collection = Atom::Collection.new("http://d.hatena.ne.jp/はてなID/atom/blog", http) collection.post! entry