So I'm currently working on a project with Teamwork API. I'm really new to this and also Javascript so bear with me haha. I generated some code from the Teamwork API and I can show data in the console log. In the console log you can see all the data that includes certain companies that are linked to your Teamwork Account. I'm also figuring out how I can get the names of the companies and leave out all the other data. Thanks in advance.
So basically turn the Console log into a div and get the names of the companies
https://developer.teamwork.com/projects/api-v1/ref/companies/get-companies-json
var request = require("request");
var options = { method: 'GET', url: '-', headers: {authorization: '-'} };
request(options, function (error, response, body) { if (error) throw new Error(error);
console.log(body); });