'How to call javascript function making a axios api call from java
I have a javascript function which make a network call using the axios library. The function supports for GET and POST. My requirement is to call the same javascript function from Java, which internally will make a network call using axios.
Solution 1:[1]
You can create a node.js application that uses the axios library to accomplish what you need and call it from Java with code similar to this:
Runtime run = Runtime.getRuntime();
run.exec(command);
That said, Java has excellent libraries for networking to probably fit your requirement.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | stepanian |
