atomutil で fotolife API をたたいてみる - 冬通りに消え行く制服ガールは、夢物語にリアルを求めない。 - subtech

screenshot

fotolife APIAtom 0.3 なのでちょっとだけ工夫がいるのですが require "rubygems" require "atomutil" require "yaml" require "pathname" file = Pathname.new("2150944907_5be2ee34ac.jpg") entry = Atom::Entry.new({ :title => file.basename.to_s, :updated => Time.now, :content => Atom::Content.new { |c| c.body = [file.read].pack('m') c.type = "image/jpeg" c.set_attr(:mode, "base64") }, }) puts entry.to_s config = YAML...

http://subtech.g.hatena.ne.jp/cho45/20080101/1199190485
http://b.hatena.ne.jp/entry/http://subtech.g.hatena.ne.jp/cho45/20080101/1199190485