0
votes

I have to create Web services From WordPress Database.I have to create web-services for mobile devices like user Posts ,Create and Update User Profile ,Login ,Login with social Networks ,Account Details ,Messages etc.In this WordPress tables and Custom tables created by plugins or Admin in WordPress will be affected.

I want to Know any WordPress API or web services Plugin is there are not which can interact with WordPress Tables and Custom tables created by plugins or Admin. Any help would be appreciated.

3

3 Answers

9
votes

We actually did something quite like this.

To start the whole wordpress-api from a custom file you have to do this:

<?php require('/wp-load.php'); ?>

After that is done you can now use all functions in the Wordpress Api.

For example:

<?php 
function getBlogTitle(){
    $blog_title = get_bloginfo('name');
    echo '{restfulapi:{title: '.$blog_title.'}}';
}
?>

Is just a small example on what you can do. But it gives you the full power of wordpress and its installed plugins.

Good luck!

0
votes

Try this Url:

http://mikeschinkel.com/blog/restful-web-services-in-wordpress-plugin/

Full specification is there how to create webservices from WordPress plugin.