I want to change a text field from the following API:
I am super new to dynamic content and how to use API. Can anyone guide me in a direction where I can learn how to do this?
This is the node.js HTTP code:
const http = require("https");
const options = {
"method": "GET",
"hostname": "apidojo-yahoo-finance-v1.p.rapidapi.com",
"port": null,
"path": "/market/v2/get-quotes?region=US&symbols=AAPL",
"headers": {
"x-rapidapi-key": "7a5cd29679mshb549165914a2ddap184d38jsn09428ffb2903",
"x-rapidapi-host": "apidojo-yahoo-finance-v1.p.rapidapi.com",
"useQueryString": true
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();