Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Guzzle REST Generator

Module to easily perform real-time external REST requests and converted to Drupal REST endpoints from your app.

This helps in hiding your Access Key as the external url(ex: https://api.meetup.com/2/cities?&key=xxxxxxxxxxxxxxxxxx) is internally called from your app and not from the client browser.

The module creates a content type "Guzzle Drupal Endpoint" which is as shown in the figure and currently supports GET and POST calls only using Guzzle.

To use this module:
1) Add Content for type "Guzzle Drupal Endpoint".
2) Fill in the Request values as shown in figure and choose the desired Third-Party External URL(Facebook API, Meetup API etc.), Request Method(GET/POST), fill in the Request Headers, Payload Data.
3) Hit Publish and Save.

Tags

Guide maintainers

digantdj's picture