Announcement

Collapse
No announcement yet.

Making a REST API call(HTTPS) for each item in array

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making a REST API call(HTTPS) for each item in array

    I have an array of clientIds and I need to loop through the array and make an HTTPS GET call for each one. With the response of each one adding to a report. We currently do this manually, but Automating it would be beneficial and less problematic. Is this possible? I assume there would be a way to make a REST call from a transformer, which I could do while looping through the items in the array.

  • #2
    You could make a 2nd channel that is just the HTTP sender. and in your main channel loop through the array and call router.routeMessage. Then just store off each result.

    Comment

    Working...
    X