I have a function that returns an array of objects and loops sending a request for each object,
but when trying to send the second request it loses the value of the variable that was set
examples:
does anyone know how to not lose the variable ‘api_endpoint’ when looping?