Code (npm or php) in flows?

#1

Hi there !

i’m trying to communicate with an API to get some data. However a connector is needed to communicate with this API. This connector is available :

either in PHP => can i include PHP in the Flowxo Code service ?

or through a Node API wrapper available on https://www.npmjs.com => Is it possible to combine Flowxo with a npm package in order to then use the js methods / parameter in my Flow ?

thank you for your help

best regards

(Daniel Beckett) #2

Hi,

Unfortunately you can’t use PHP in the code service.

You could use Webhooks & HTTP for the the wrapper.

First you’ll need to know the request format, i.e. the content and headers (raw request) to make a call to their API from an external service.

Once you have this you can make a HTTP request to the URL using the appropriate method and content type.

For more information you may want to look at the API documentation for the third party service/site.

Thanks,
Dan

#3

Hi,
Thank you for your answer.

The request is a POST, and the header need to hold an Oauth identification.
Do you know how i could authenticate this way with Flowxo ?

thank you in advance,

regards