Pages

Thursday, March 23, 2006

wordpress 實作的兩個測試用 api

剛發現可以查到所有 method, 就玩了一下 沒想到有這兩個東西

demo.sayHello demo.addTwoNumbers

連上去玩玩看

>>> server.demo.sayHello() 'Hello!' >>> ans = server.demo.addTwoNumbers('1', '3') >>> ans 4 >>> ans = server.demo.addTwoNumbers('6.27', '3') >>> ans 9.2699999999999996

看來精確度不太高:p

-- wordpress 支援的 xmlrpc method blogger -- blogger.getUsersBlogs -- blogger.getUserInfo -- blogger.getPost -- blogger.getRecentPosts -- blogger.getTemplate -- blogger.setTemplate -- blogger.newPost -- blogger.editPost -- blogger.deletePost other -- pingback.ping -- pingback.extensions.getPingbacks -- demo.sayHello -- demo.addTwoNumbers metaWeblog -- metaWeblog.newPost -- metaWeblog.editPost -- metaWeblog.getPost -- metaWeblog.getRecentPosts -- metaWeblog.getCategories -- metaWeblog.newMediaObject -- metaWeblog.deletePost -- metaWeblog.getTemplate -- metaWeblog.setTemplate -- metaWeblog.getUsersBlogs mt -- mt.getCategoryList -- mt.getRecentPostTitles -- mt.getPostCategories -- mt.setPostCategories -- mt.supportedMethods -- mt.supportedTextFilters -- mt.getTrackbackPings -- mt.publishPost


This article was originally posted on this site.

No comments:

Post a Comment