Dependencies
- Request
npm i request
npm i csvtojson
- Go to the Integrate tab for your Import.io extractor
- Copy the CSV from the last successful run endpoint
- Replace the endpoint into the <ENDPOINT> below with the CSV endpoint
const request = require('request');
const csv = require('csvtojson');
const fetch = uri => {
request(uri, (error, response, body) => {
csv({
output: 'json'
}).fromString(body)
.then(data => {
console.log(data);
});
}
};
fetch(<ENDPOINT>);
Comments
0 comments
Please sign in to leave a comment.