Sha256: 404409f598f1addf333b2d5c71732284ce6c796d9cc0c33e3b2e7dbf98ba2317

Contents?: true

Size: 1.47 KB

Versions: 94

Compression:

Stored size: 1.47 KB

Contents

#
# see the blogger API spec at http://www.blogger.com/developers/api/1_docs/
# note that the method signatures are subtly different to metaWeblog, they
# are not identical. take care to ensure you handle the different semantics
# properly if you want to support blogger API too, to get maximum compatibility.
#

module Blog
  class Blog < ActionWebService::Struct
    member :url,      :string
    member :blogid,   :string
    member :blogName, :string
  end

  class User < ActionWebService::Struct
    member :nickname,  :string
    member :userid,    :string
    member :url,       :string
    member :email,     :string
    member :lastname,  :string
    member :firstname, :string
  end
end

#
# blogger
#
class BloggerAPI < ActionWebService::API::Base
  inflect_names false

  api_method :newPost, :returns => [:string], :expects => [
    {:appkey=>:string},
    {:blogid=>:string},
    {:username=>:string},
    {:password=>:string},
    {:content=>:string},
    {:publish=>:bool}
  ]

  api_method :editPost, :returns => [:bool], :expects => [
    {:appkey=>:string},
    {:postid=>:string},
    {:username=>:string},
    {:password=>:string},
    {:content=>:string},
    {:publish=>:bool}
  ]

  api_method :getUsersBlogs, :returns => [[Blog::Blog]], :expects => [
    {:appkey=>:string},
    {:username=>:string},
    {:password=>:string}
  ]

  api_method :getUserInfo, :returns => [Blog::User], :expects => [
    {:appkey=>:string},
    {:username=>:string},
    {:password=>:string}
  ]
end

Version data entries

94 entries across 94 versions & 28 rubygems

Version Path
devolute-actionwebservice-2.3.11 examples/metaWeblog/apis/blogger_api.rb
reidiculous-actionwebservice-3.0.3 examples/metaWeblog/apis/blogger_api.rb
aforward-actionwebservice-2.3.8.100 examples/metaWeblog/apis/blogger_api.rb
aforward-actionwebservice-2.3.8.3 examples/metaWeblog/apis/blogger_api.rb
aforward-actionwebservice-2.3.8.1 examples/metaWeblog/apis/blogger_api.rb
fdv-actionwebservice-2.3.8 examples/metaWeblog/apis/blogger_api.rb
athlite-actionwebservice-2.3.8 examples/metaWeblog/apis/blogger_api.rb
jmeeks-actionwebservice-2.3.2 examples/metaWeblog/apis/blogger_api.rb
jmeeks-actionwebservice-2.3.5 examples/metaWeblog/apis/blogger_api.rb
rubyjedi-actionwebservice-2.3.5.20100615120735 examples/metaWeblog/apis/blogger_api.rb
zinfinit-actionwebservice-2.3.4.2 examples/metaWeblog/apis/blogger_api.rb
valdemaximus-actionwebservice-0.1.1 examples/metaWeblog/apis/blogger_api.rb
valdemaximus-actionwebservice-0.1.0 examples/metaWeblog/apis/blogger_api.rb
panztel-actionwebservice-2.3.5 examples/metaWeblog/apis/blogger_api.rb
pelle-actionwebservice-2.3.5 examples/metaWeblog/apis/blogger_api.rb
ywen-actionwebservice-2.3.4.1 examples/metaWeblog/apis/blogger_api.rb
panztel-actionwebservice-2.3.4.a examples/metaWeblog/apis/blogger_api.rb
ywen-actionwebservice-2.3.4 examples/metaWeblog/apis/blogger_api.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/apis/blogger_api.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/apis/blogger_api.rb