Skip to content

Instantly share code, notes, and snippets.

View lucascyrne's full-sized avatar
🎯
Focusing

Lucas Cyrne lucascyrne

🎯
Focusing
View GitHub Profile
@lucascyrne
lucascyrne / app.js
Created July 20, 2020 01:35
feat(*): Simple script to fetch data from API
const fetch = require("node-fetch");
const fs = require("fs");
const url =
"https://api-content.ingresso.com/v0/events/partnership/shopping_jequitiba";
let settings = { method: "Get" };
fetch(url, settings)
.then((res) => res.json())
.then((json) => {
const fetch = require("node-fetch");
const fs = require("fs");
const url =
"https://api-content.ingresso.com/v0/events/partnership/shopping_jequitiba";
let settings = { method: "Get" };
fetch(url, settings)
.then((res) => res.json())
.then((json) => {