Skip to main content
Solved

Use list in HTTP CALLER.


Hello everybody,  

 

I have a Python script that allows me to interact with an API of an application called KIZEO.  

 

Lately I wanted to automate data recovery by FME. So I had to use the HTTP CALLER transformer which allows me via a URL to retrieve the first level data, i.e.: 

  • Entity identifier.    
  • Dated.    
  • ETC. 

 

I stored all the identifiers retrieved by the script in a list (LISTE_ID). Then in order to access the detail of each entity (Level 2) I should call back the HTTP CALLER by entering the URL box: https://www.kizeoforms.com/rest/v3/forms/{formId}/ data/{LISTE_ID}.  

 

But unfortunately, the HTTP CALLER does not accept me to enter the URL containing a list, it asks me to give it just a single element.

 

Link of API: https://kizeo.github.io/kizeo-forms-documentations/docs/fr/data

Best answer by david_r

If it's an FME list attribute, you'll have to use e.g. the ListExploder to execute the HTTPCaller once for each list element. You can then regroup the results from all the "exploded" list items using e.g. an Aggregator.

View original
Did this help you find an answer to your question?

4 replies

david_r
Celebrity
  • Best Answer
  • February 9, 2022

If it's an FME list attribute, you'll have to use e.g. the ListExploder to execute the HTTPCaller once for each list element. You can then regroup the results from all the "exploded" list items using e.g. an Aggregator.


  • Author
  • February 10, 2022
david_r wrote:

If it's an FME list attribute, you'll have to use e.g. the ListExploder to execute the HTTPCaller once for each list element. You can then regroup the results from all the "exploded" list items using e.g. an Aggregator.

Hello, thank you for your answer,

but how can i configure the HTTP CALLER to run for each list element ?


david_r
Celebrity
  • February 10, 2022
mostafa1811 wrote:

Hello, thank you for your answer,

but how can i configure the HTTP CALLER to run for each list element ?

The ListExploder will output one feature per list element, so simply connect the ListExploder to the HTTPCaller.


  • Author
  • February 10, 2022
mostafa1811 wrote:

Hello, thank you for your answer,

but how can i configure the HTTP CALLER to run for each list element ?

Thank you very much David


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings