Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passing parameters to an add_method('metaWeblog.getPosts') call #4

Open
paulwalk opened this issue Jul 17, 2013 · 1 comment
Open

Comments

@paulwalk
Copy link

How do I specify the parameter signiture for an add_method call? - e.g.

add_method('metaWeblog.getRecentPosts') do
//do something
end

@swaffoz
Copy link
Contributor

swaffoz commented Mar 15, 2015

Same as you would on Ruby's XMLRPC::BasicServer's add_handler method
You can specify parameters via blocks:

add_method('metaWeblog.getRecentPosts') do |blogid, username, password, numberOfPosts|
  //do something
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants