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
Related Q & A:
- How to send Mobile Email Using ExactTarget SOAP API?Best solution by blog.lombaard.co.uk
- How to Implement Gateway Service something similar to Oracle API gateway Using Java and Java based Open Source frameworks only?Best solution by Quora
- How to reply to particular tweet using Twitter API?Best solution by Stack Overflow
- How to open file using Google drive api?Best solution by Stack Overflow
- How to get contacts using address book API in ios programming?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.