Page 1 of 1

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

Posted: Sun Jul 24, 2005 2:25 pm
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'));

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

Posted: Sun Jul 24, 2005 2:48 pm
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