The rule logic you define will run on your end user's browser. You may want certain network requests in your rule logic to be performed from Feathery's servers instead for security reasons, such as hiding authorization information from the user. To do so, you can leverage
API connectors, which allow you to run API requests securely from Feathery's servers.
To create a connector, go to
API Connectorson the
Logicpage and define the API you would like your rule to use.
Then, go to your rule code and make a network request to the API connector via the
feathery.httpinterface. Allowed methods include
You can use it like
feathery.http.GET(<url>, <data>, <headers>)where
datais the request body and
headersare additional headers you'd like to pass in the request.
You're looking to fetch a list of dog breeds via
https://dog.ceo/api/breeds/list/allfrom Feathery's servers. First, create the API connector.
Then, use the
feathery.httpinterface to access the API connector from your logic rule.