Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios api example

npm i axios
import axios

axios.get("https://catfact.ninja/fact").then((res) => {
    console.log(res.data);
  });
Source by masteringjs.io #
 
PREVIOUS NEXT
Tagged: #axios #api
ADD COMMENT
Topic
Name
5+2 =