Is there support for Unicoins in the StackExchange API?

Using Metaweblog API support in Drupal?

  • I've been working recently on a blogging client, that helps posting on different platforms. The client is developed under CakePHP. I've managed to get things working for WordPress, using Metaweblog API calls via XML-RPC. I thought I'd use the same technique to get things done for Drupal powered websites. But it didn't work. I'm using CakePHP & the IXR Library (http://scripts.incutio.com/xmlrpc/) to make my XML-RPC operations. Here's a sample of how I get categories for a WordPress powered website:App::import('Vendor', 'XMLRPC', array('file'=> 'IXR_Library')); $client = new IXR_Client('http://www.myblog.com/xmlrpc.php'); $client->query('metaWeblog.getCategories', '', $username,$password); if(!$client->getErrorCode()) {     $categories = $client->getResponse();    } else {     echo 'An error occurred : '. $client->getErrorMessage(); } When using the same code for Drupal websites, I get: An error occurred : Server error. Requested method   metaWeblog.getCategories not specified. Does it mean Drupal isn't supporting Metaweblog API? Do I need to install extra plugins on the Drupal websites? Or, is there another way to remotely publish content on Drupal powered webites? Thanks in advance!

  • Answer:

    Exactly ... Drupal supports XML-RPC requests but you must implement the behavior of those request with hook_xmlrpc (http://drupal.org/node/44895) My advice is you may use Services Module (available for both 6.x and 7.x version) http://drupal.org/project/services, with this module you can parametrize all setting such as you need

Alejandro Tabares at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.