Solved

Use list in HTTP CALLER.

  • 9 February 2022
  • 4 replies
  • 8 views

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

icon

Best answer by david_r 9 February 2022, 17:40

View original

4 replies

Userlevel 4

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.

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 ?

Userlevel 4

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.

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

Reply