Modrupal: A library for Drupal mobile web services

To enable sharing of Logo programs on mobile devices, I needed to setup a social website. But there are a ton of things I didn’t want to deal with: User authentication and management, content management, support for a simple remote service API. Fortunately, the Drupal platform provided almost everything I needed. Drupal is an awesome content management system that has a very active user-supported module system.

One of the modules that users have developed is a web services interface to Drupal. Many of the basic core features are exposed, and developers can create additional interfaces to other modules.

Unfortunately, there wasn’t much help available for Java developers. From the looks of it, AIR/Flex/Flash is getting some serious developer time right now. To support the Logo project, I developed a Java library for mobile web services with Drupal. The library is fairly basic right now, but it should be easier to get started now.

Here’s an example of using it to call the system.connect method:


ModrupalServiceClient client =
new ModrupalServiceClient(url, api_key, domain);
SystemService system = new SystemService(client);
Hashtable res = system.connect();

I’m releasing the code under the GPL 3.0. Feel free to use it for your own projects.

Modrupal mobile library for Drupal web services.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • MySpace
  • StumbleUpon
  • Technorati

Tags: , , , , ,

Leave a Reply