How to Send a Webrequest from Neos-Backend

Hi!!

I´ m currentliy working in a project. I need to send out a web-request to another in-house tool we developed for a newsletter subscription. A form-button would trigger the request.

I already googled about this topic, but I couldn’t find anything useful.

Can someone give me any advice or pointers on how I could achieve that from the NEOS-Backend.

Thanks a lot in advance…

Cheers :wink:

Build a backend module, with a PHP controller.
From the controller you can create the call with curl or whatever tool you like.
https://docs.neos.io/cms/manual/extending-neos-with-php-flow/creating-afx-based-applications-backend-modules

I’m currently working on a project. I need to submit a web-request to another in-house product we designed for a newsletter subscription. A form-button would initiate the request.

I looked this up on Google but couldn’t find anything useful.

Can anyone give me some ideas or point me in the right direction for doing this with the NEOS-Backend?

Thank you very much ahead of time…

A possible example could be the package https://github.com/bwaidelich/Wwwision.Neos.MailChimp.git … as it is general purpose it is much more complicated than a direct implementation for a specific usecase would look.

You will likely implement an ActionController the form will submit data to. Alternatively if you already use use one of the Neos Form Packages a FormFinisher (classic Forms) respectively a FormAction (Fusion forms).

The actual sending and handling of the request of the example package can be found here. https://github.com/bwaidelich/Wwwision.Neos.MailChimp/blob/master/Classes/Wwwision/Neos/MailChimp/Domain/Service/MailChimpService.php#L206-L230