the-warp-zone / FastTravelStocks

Fast Travel Stocks: Where finance and games come together!
https://fast-travel-stocks-warp.herokuapp.com/
0 stars 1 forks source link

API Access - IDGB #2

Closed CalebRose closed 5 years ago

JakedStevens commented 5 years ago

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); });

JakedStevens commented 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. Annotation 2019-06-17 125013

JakedStevens commented 5 years ago

EDIT: syntactical correction Annotation 2019-06-17 125013

JakedStevens commented 5 years ago

EDIT 2: Annotation 2019-06-17 125013