Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hello,
I'm new in Talend, and I would like to use an access token from one Api
( i have used Trestclient -> textractJsonFields -> tFileOutputDelimeted) ,so i get my access token in a csv file
Now, i would like to use this token as a parameter in another API call ( using TrestClient) !!!
I have found a possible solution using Tjava component to get the "access_token" from the csv file and use it as a context variable in TRestClient URL
tJava
|
onsubjobok
|
tRestClient
so , i'm stuck in using Tjava component !!!
Any help please , appreciate your response!!!
Why would you not use a tFileInputDelimited to read the Access Token in your job that needs this? You will be writing unnecessary Java if you try to do this with the tJava.
You can use a tContextLoad component with the tFileInputDelimited.
Why would you not use a tFileInputDelimited to read the Access Token in your job that needs this? You will be writing unnecessary Java if you try to do this with the tJava.
You can use a tContextLoad component with the tFileInputDelimited.