'save axios api response data into a local file as .csv
it is possible to save the axios api response into a local file ? I have this piece of code:
axios.get(
"http://url-to-provide-data.com",
{headers}
)
.then((response) => {
console.log(response.data);
responseData(response.data);
})
.catch((error) => {
console.log(error.response.data);
});
}
I am trying to use json2csv in ordwer to save the api response into a local file as csv but not really working or better said, I'm not really sure how to use'it, any help is much appreciated !
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
