Add some function in "Blogger API" in xmlrpc.php f

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
theband

Add some function in "Blogger API" in xmlrpc.php f

Post by theband »

Hi there,

i looked the source of xmlrpc.php file, and i notice that in /* BLOGGER API */ , i doesn't have these function: (setPostCategories, getPostCategories, newMediaObject, getRecentPostTitles,
getCategoryList, getPostCategories, setPostCategories, supportedTextFilters, publishPost) . For some reason on the project im working on, i would like to add these function into /* BLOGGER API */, but i don't have any ideas how to modify the code, and how to do that, So if you can , please show me how to do that, or modify the file for me.
Thanks for the great tool you made...

Code: Select all

$dispatches = array(
                    /* BLOGGER API */
                    'blogger.getUsersBlogs' =>
                        array('function' => 'blogger_getUsersBlogs'),
                    'blogger.getUserInfo' =>
                        array('function' => 'blogger_getUserInfo'),
                    'blogger.newPost' =>
                        array('function' => 'blogger_newPost'),
                    'blogger.editPost' =>
                        array('function' => 'blogger_editPost'),
                    'blogger.deletePost' =>
                        array('function' => 'blogger_deletePost'),
                    'blogger.getRecentPosts' =>
                        array('function' => 'blogger_getRecentPosts'),
                    'blogger.getPost' =>
                        array('function' => 'blogger_getPost'),

                    /* MT/metaWeblog API */
                    'metaWeblog.newPost' =>
                        array('function' => 'metaWeblog_newPost'),
                    'metaWeblog.editPost' =>
                        array('function' => 'metaWeblog_editPost'),
                    'metaWeblog.getPost' =>
                        array('function' => 'metaWeblog_getPost'),
                    'metaWeblog.deletePost' =>
                        array('function' => 'metaWeblog_deletePost'),
                    'metaWeblog.setPostCategories' =>
                        array('function' => 'metaWeblog_setPostCategories'),
                    'metaWeblog.getPostCategories' =>
                        array('function' => 'metaWeblog_getPostCategories'),
                    'metaWeblog.newMediaObject' =>
                        array('function' => 'metaWeblog_newMediaObject'),
                    'metaWeblog.getRecentPosts' =>
                        array('function' => 'metaWeblog_getRecentPosts'),
                    'mt.getRecentPostTitles' =>
                        array('function' => 'mt_getRecentPostTitles'),
                    'mt.getCategoryList' =>
                        array('function' => 'mt_getCategoryList'),
                    'mt.getPostCategories' =>
                        array('function' => 'metaWeblog_getPostCategories'),
                    'mt.setPostCategories' =>
                        array('function' => 'metaWeblog_setPostCategories'),
                    'mt.supportedTextFilters' =>
                        array('function' => 'mt_supportedTextFilters'),
                    'mt.publishPost' =>
                        array('function' => 'metaWeblog_publishPost'));
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Add some function in "Blogger API" in xmlrpc.p

Post by garvinhicking »

Modifying the code should be straight ahead: Just see how the API calls are registered in the $dispatches array, and then look at the functions and what they implement.

You need to search some Spec to see what the functions you are missing need to do and which parameters they take and which they output.

Patches and contributions are heartly welcome to the project, it would be great if you could add that funcionality.

Regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply