Problem/Motivation

Previously I posted a feature request if HTTP client manager with ECA can be used together to communicate with an external API i.e. run HTTP request(s) (reactions) from local site (events). This was a really cool implementation!

Now, that was one way. Is it possible to have another feature enhancement. To be able to communicate in both ways with an external API. A simple example is communicating with a payment gateway. When local site submits a payment request, payment gateway responds with a code telling the payment is successful. When local site receives this code, it will update the node accordingly (like changing a field select list to 'Paid' or some sort). Maybe a try/catch block too. If the external API takes too long to respond.

Steps to reproduce

As in description.

Proposed resolution

To have a two-way communication with external API.

Remaining tasks

Develop a two-way communication with external API.

User interface changes

Maybe in ECA?

API changes

Not sure on this.

Data model changes

Not sure on this.

Comments

amal.bukhari created an issue.

amal.bukhari’s picture

Hi,

Any updates on this possibility? In addition to previous issue of communicating with external APIs (now solved), can we extend it to read the response from external APIs and respond to it from Drupal?

Kind regards,
Amal.