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