Possibility of async/await

Created on 17 April 2023, about 1 year ago
Updated 30 August 2023, 10 months ago

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.

✨ Feature request
Status

Active

Version

9.3

Component

Code

Created by

πŸ‡²πŸ‡ΎMalaysia amal.bukhari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @amal.bukhari
  • πŸ‡²πŸ‡ΎMalaysia amal.bukhari

    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.

Production build 0.69.0 2024