Skip to content

Making HTTP requests from an integration

Last updatedView as Markdown

Libraries

In order to make HTTP requests to other Arc XP services or third parties, you must use a library. There are many options available, but for our purposes we prefer and use Axios. Axios is a Promise-based HTTP client for the browser and Node.js.

You must install Axios and include it as a dependency. You can find an example of how to use it at the Axios docs.

Promises

Writing asynchronous code can get confusing. Using Promises is a great advantage when dealing with code that requires a more complicated chain of events. See Async/Await: The Hero JavaScript Deserved.

More Information

5 Ways to Make HTTP Requests in Node.js


Have a feature request or suggestion? Let us know on Our Ideas Portal.