This is a helper module to let your Drupal website connect to external APIs.

This module uses a Plugin architecture, that allows you to define a plugin in your custom Drupal module, for each REST API / web service you want to integrate with.

Features

  • Provides a RestApiConnection plugin type to use in your modules for connecting to an external REST API.
  • Ability to log REST API requests and responses in Drupal logger / watchdog.
  • Ability to differentiate between dev / test / live environments.

Similar projects

  • HTTP Client Manager: describes each API declaratively, as a Guzzle Service Description in YAML or JSON, and comes with extras like pre-configured requests, actions and a preview UI. It depends on the Guzzle Services library.

API Connection is more lightweight: one PHP plugin class per API, on top of the Drupal core HTTP client, with no extra dependencies. Pick HTTP Client Manager if you want to describe all API operations up front, and API Connection if you prefer to write the API calls in PHP yourself.

Supporting organizations: 
Maintenance
Initial development & maintenance
Initial development & maintenance

Project information

Releases