<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Call Rest api with OAuth2.0 by using trest component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370572#M133601</link>
    <description>&lt;P&gt;Hi @LELO NYAKA​&amp;nbsp;, use tRestClient component you can set the auth in the settings.&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/7NvFnkWpbH8Gy3Rm6mUXnw/V4DayMUD1TrO522ClO0fBw&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 14:15:08 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-10-07T14:15:08Z</dc:date>
    <item>
      <title>Call Rest api with OAuth2.0 by using trest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370571#M133600</link>
      <description>&lt;P&gt;I have an url https:// myTokenUrl/token.&lt;/P&gt;&lt;P&gt;In Postman, I add an Authorization Basic Auth&amp;nbsp;&lt;/P&gt;&lt;P&gt;add username and password, ain the body, i select :x-www-form-urlencoded&lt;/P&gt;&lt;P&gt;and i set grant_type key and client_credentials value&lt;/P&gt;&lt;P&gt;and i sent my post request&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I retrieve a json response which contains an access_token which expires every 1 hour.&lt;/P&gt;&lt;P&gt;After i sent a get request with this url https:// mysecondUrl/users and&amp;nbsp;&lt;/P&gt;&lt;P&gt;i set a bearer token (access_token)&lt;/P&gt;&lt;P&gt;it 's work very fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do the same operation in talend by using trest component, but i doesn't&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i set these parameters : Authorization : Basic Auth , username : username value,&lt;/P&gt;&lt;P&gt;password : password value and sent my post request to get access token to pass it in the second&lt;/P&gt;&lt;P&gt;get request with OAuth2.0 Bearer Token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370571#M133600</guid>
      <dc:creator>LNYAKA1625749060</dc:creator>
      <dc:date>2024-11-15T23:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Call Rest api with OAuth2.0 by using trest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370572#M133601</link>
      <description>&lt;P&gt;Hi @LELO NYAKA​&amp;nbsp;, use tRestClient component you can set the auth in the settings.&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/7NvFnkWpbH8Gy3Rm6mUXnw/V4DayMUD1TrO522ClO0fBw&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370572#M133601</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-07T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Call Rest api with OAuth2.0 by using trest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370573#M133602</link>
      <description>&lt;P&gt;@guenneguez jeremy&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link in this question appears to be no longer available, I am having  a very similar issue, do you still have these details?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 19:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2370573#M133602</guid>
      <dc:creator>JFryk</dc:creator>
      <dc:date>2023-06-28T19:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call Rest api with OAuth2.0 by using trest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2414789#M140109</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Using tRESTClient you can achieve this in 3 steps :&lt;BR /&gt;1. tJava / tjavarow : you define a String variable that contains, for example, the JSON you will send with POST method to get the token&lt;/P&gt;
&lt;P&gt;2 . tRESTClient : using POST method and the URL you will retrieve the content with the "response" link of the component. Use t extractjson to get the content of the token only. Put this into globalVar&lt;/P&gt;
&lt;P&gt;3. Later in the job when you need to send data, put the url and the token using authentification OAuth2&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeoste_0-1707129011427.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159075i41BB8E26F3E40138/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeoste_0-1707129011427.png" alt="jeoste_0-1707129011427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 10:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Rest-api-with-OAuth2-0-by-using-trest-component/m-p/2414789#M140109</guid>
      <dc:creator>jeoste</dc:creator>
      <dc:date>2024-02-05T10:31:34Z</dc:date>
    </item>
  </channel>
</rss>

