I am trying to fetch the value of an API and store in an empty array.
Here is the function using which I am getting the API response based on the header parameters.