Sha256: 3edcd61f2289d805a91575d43dceec6235a0784825105f053505a12c27642513

Contents?: true

Size: 854 Bytes

Versions: 94

Compression:

Stored size: 854 Bytes

Contents

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

94 entries across 94 versions & 28 rubygems

Version Path
GavinJoyce-actionwebservice-2.2.3 examples/metaWeblog/apis/blogger_service.rb
datanoise-actionwebservice-2.1.0 examples/metaWeblog/apis/blogger_service.rb
datanoise-actionwebservice-2.1.1 examples/metaWeblog/apis/blogger_service.rb
datanoise-actionwebservice-2.2.2 examples/metaWeblog/apis/blogger_service.rb
datanoise-actionwebservice-2.3.2 examples/metaWeblog/apis/blogger_service.rb
davidsmalley-actionwebservice-2.3.1 examples/metaWeblog/apis/blogger_service.rb
davidsmalley-actionwebservice-2.3 examples/metaWeblog/apis/blogger_service.rb
dougbarth-actionwebservice-2.1.1 examples/metaWeblog/apis/blogger_service.rb
dougbarth-actionwebservice-2.3.3 examples/metaWeblog/apis/blogger_service.rb
dougbarth-actionwebservice-2.3.4 examples/metaWeblog/apis/blogger_service.rb
feldpost-actionwebservice-2.3.3 examples/metaWeblog/apis/blogger_service.rb
mozy-actionwebservice-2.3.2 examples/metaWeblog/apis/blogger_service.rb
nmeans-actionwebservice-2.1.1 examples/metaWeblog/apis/blogger_service.rb
panztel-actionwebservice-2.3.4 examples/metaWeblog/apis/blogger_service.rb
pelle-actionwebservice-2.3.3 examples/metaWeblog/apis/blogger_service.rb
rickenharp-actionwebservice-2.3.4 examples/metaWeblog/apis/blogger_service.rb
tonycoco-actionwebservice-2.3.3 examples/metaWeblog/apis/blogger_service.rb
tonycoco-actionwebservice-2.3.4 examples/metaWeblog/apis/blogger_service.rb
keshav-actionwebservice-1.0.0 examples/metaWeblog/apis/blogger_service.rb
datanoise-actionwebservice-2.3.5 examples/metaWeblog/apis/blogger_service.rb