timbrandin / meteor-drupal-services

An integration with the Drupal Services module
10 stars 0 forks source link

Drupal Services Build Status

A server side package for integrating with Drupal via the Services module, and authenticating using the OAuth module.

Install

meteor add timbrandin:drupal-services

Getting started

Read the documentation

Here are some quick instructions on how to use this package to fetch data from Drupal such as nodes, terms, users etc.

Code examples

Some typical service call looks like this, they are called from the server.

if (Meteor.isServer) {
  MySite = new DrupalServices('api');

  // Fetch nodes with node-id 1 and 2.
  var nodes = MySite.get('node', {
    'parameters[nid]': '1,2'
  });

  // Fetch node 1 with all its fields.
  var node = MySite.get('node/1');
}

Features

Roadmap

Feel free to fork, send pull requests and post issues on Github.