Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
NAdams1602707007
Contributor
Contributor

API call with tRest

Hey everyone,

I'm new with doing API calls and I need to create a workflow in Talend to get json data and load the data into a database table. I have been given the API key and the Terminal ID of my source but not sure how to format the tRest component in the headers section. Any pointers?

0693p00000AE3UTAA1.png

Labels (5)
2 Replies
Ravi_Rajagopal
Contributor III
Contributor III

Did you get your question answered? This is a long winded discussion. You will have to setup through the API designer, to consume the API. You then use that API designer in your tRest component and then you extract the data from the JSON request.

kakooo16
Creator
Creator

Hi , you have to test your api call in for example (in my case) Postman to view the response of the api . Then once you have the related informations (Headers ,etc .. )

 

You can view the result by matching the tRest with a tLogRow .

After that you can match a tMap the result will be 0693p00000AETGwAAP.png 

then you can use tExtractJsonFields to extract the columns needed .

 

The final thing to do is :

 

tRest -- tMap -- tExtractJsonFields -- DB

 

Greetings