I'm calling a web service API using a tREST component.
HTTP request header contains an authentication token.
I want to set this dynamically by reading it from a file instead of the built-in.
What should i do?
You could access to your response header with tRESTClient.
Get the token from the file with the following subjob to populate a global variable (for example a global variable called "token"):
tFileInputDelimited --> tFlowToIterate (do not use "default" to decide by yourself for the variable name).
Then in the tRest's value for the Value field, get the global variable value with the followinb expression:
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema