Closed CalebRose closed 5 years ago
This was an example of how to get an array of titles based on a searchable publisher, It returns the list of titles, the logo of the publisher, and the unix time stamp of each games release date so we can implement that in the graph.
EDIT: syntactical correction
EDIT 2:
axios({ url: "https://api-v3.igdb.com/companies", method: 'POST', headers: { 'Accept': 'application/json', 'user-key': c1c717a3e484c33bb482bdb7f9fb7eb4 }, data: "fields logo.*,name,published.name,published.first_release_date; where name ~ *"electronic arts"*;" }) .then(response => { console.log(response.data); }) .catch(err => { console.error(err); });