Skip to main content
Solved

Use list in HTTP CALLER.

  • February 9, 2022
  • 4 replies
  • 72 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

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • 8392 replies
  • 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
  • 10 replies
  • February 10, 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.

Hello, thank you for your answer,

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


david_r
Celebrity
  • 8392 replies
  • February 10, 2022

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
  • 10 replies
  • February 10, 2022

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