Class: Blogpost::Jugem
- Inherits:
-
Object
- Object
- Blogpost::Jugem
- Defined in:
- lib/blogpost/jugem.rb
Class Method Summary collapse
Class Method Details
.post(opts = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/blogpost/jugem.rb', line 3 def self.post(opts={}) opts = Blogpost..merge(opts) host="http://#{opts[:domain]}.jugem.jp/admin/xmlrpc.php" XMLRPC::Client.new2(host).call("metaWeblog.newPost", "", opts[:user], opts[:pass], {"title" => opts[:title],"description" => opts[:content]}, true) end |