Creating Loop to update multiple records from an external API.
I'm trying to populate my database from an external API. Currently I have data coming in from an external API, and I'm able to update my database for a single database item. However I cannot get it to loop to create all the items within the response as items in the database.Â
I've got it creating a variable which im then saving in the database, but the problem is that I'm creating a variable with the value '0' which is returning the first result. I need to have this loop so that it returns all of the results. Everything I try is failing unfortunately 🤣 Screenshot: https://i.imgur.com/fsHxKfw.png
Any tips or advice would be greatly appreciated.Â
Working with APIs
6 replies