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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ziedkh
Contributor III
Contributor III

Dynamic Url for TRestClient

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!!!




Labels (6)
1 Solution

Accepted Solutions
Anonymous
Not applicable

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.

View solution in original post

2 Replies
Anonymous
Not applicable

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.

Ziedkh
Contributor III
Contributor III
Author

Thanks a lot 0683p000009MA9p.png