Sha256: d7721bfb83a8859c0074197a6e21a332678d296c75e0793fbcb43cd01c5c2fd7

Contents?: true

Size: 1.62 KB

Versions: 94

Compression:

Stored size: 1.62 KB

Contents

# 
# here lie structures, cousins of those on http://www.xmlrpc.com/metaWeblog
# but they don't necessarily the real world reflect
# so if you do, find that your client complains:
# please tell, of problems you suffered through
#

module Blog
  class Post < ActionWebService::Struct
    member :title,       :string
    member :link,        :string
    member :description, :string
    member :author,      :string
    member :category,    :string
    member :comments,    :string
    member :guid,        :string
    member :pubDate,     :string
  end

  class Category < ActionWebService::Struct
    member :description, :string
    member :htmlUrl,     :string
    member :rssUrl,      :string
  end
end

#
# metaWeblog
#
class MetaWeblogAPI < ActionWebService::API::Base
  inflect_names false

  api_method :newPost, :returns => [:string], :expects => [
    {:blogid=>:string},
    {:username=>:string},
    {:password=>:string},
    {:struct=>Blog::Post},
    {:publish=>:bool}
  ]

  api_method :editPost, :returns => [:bool], :expects => [
    {:postid=>:string},
    {:username=>:string},
    {:password=>:string},
    {:struct=>Blog::Post},
    {:publish=>:bool},
  ]

  api_method :getPost, :returns => [Blog::Post], :expects => [
    {:postid=>:string},
    {:username=>:string},
    {:password=>:string},
  ]

  api_method :getCategories, :returns => [[Blog::Category]], :expects => [
    {:blogid=>:string},
    {:username=>:string},
    {:password=>:string},
  ]

  api_method :getRecentPosts, :returns => [[Blog::Post]], :expects => [
    {:blogid=>:string},
    {:username=>:string},
    {:password=>:string},
    {:numberOfPosts=>:int},
  ]
end

Version data entries

94 entries across 94 versions & 28 rubygems

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