Sha256: c5ca89282f96194dce9a932a242da3d89920ba00db67c5a291d5bf83cc78a393

Contents?: true

Size: 872 Bytes

Versions: 14

Compression:

Stored size: 872 Bytes

Contents

# encoding: UTF-8
require 'blogger_api'

class BloggerService < ActionWebService::Base
  web_service_api BloggerAPI

  def initialize
    @postid = 0
  end

  def newPost(key, id, user, pw, content, publish)
    $stderr.puts "id=#{id} user=#{user} pw=#{pw}, content=#{content.inspect} [#{publish}]"
    (@postid += 1).to_s
  end

  def editPost(key, post_id, user, pw, content, publish)
    $stderr.puts "id=#{post_id} user=#{user} pw=#{pw} content=#{content.inspect} [#{publish}]"
    true
  end

  def getUsersBlogs(key, user, pw)
    $stderr.puts "getting blogs for #{user}"
    blog = Blog::Blog.new(
      :url =>'http://blog',
      :blogid => 'myblog',
      :blogName => 'My Blog'
    )
    [blog]
  end

  def getUserInfo(key, user, pw)
    $stderr.puts "getting user info for #{user}"
    Blog::User.new(:nickname => 'user', :email => 'user@test.com')
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
keeguon-actionwebservice-3.1.2 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.1.1 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.1.0 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.20 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.19 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.17.4 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.17.3 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.17.2 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.17.1 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.17 examples/metaWeblog/apis/blogger_service.rb
keeguon-actionwebservice-3.0.1 examples/metaWeblog/apis/blogger_service.rb
axtro-actionwebservice-2.3.5.1.20101118142125 examples/metaWeblog/apis/blogger_service.rb
rubyjedi-actionwebservice-2.3.5.20100714122544 examples/metaWeblog/apis/blogger_service.rb
rubyjedi-actionwebservice-2.3.5.20100618223219 examples/metaWeblog/apis/blogger_service.rb