<?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: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347848#M115050</link>
    <description>&lt;P&gt;you have to write a String named string wich contain the grant type (authorization_code), code and redirect_uri&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;B&gt;grant_type&lt;/B&gt;=authorization_code&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;code&lt;/B&gt;=The authorization code you received in the callback&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;redirect_uri&lt;/B&gt;=The same redirect URI that was used when requesting the code&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;with this value:&lt;/P&gt;&lt;P&gt;"grant_type=authorization_code&amp;amp;code=xxxxxx&amp;amp;redirect_uri=&lt;A href="https://myapp.com/redirect" alt="https://myapp.com/redirect" target="_blank"&gt;https://myapp.com/redirect&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could do this in a trowgenerator or a tfixedflowinput for example.&lt;/P&gt;&lt;P&gt;Then connect it to the trestclient with a main row.&lt;/P&gt;&lt;P&gt;In trestclient :&lt;/P&gt;&lt;P&gt;URL : "&lt;A href="https://identity.xero.com/connect/token" alt="https://identity.xero.com/connect/token" target="_blank"&gt;https://identity.xero.com/connect/token&lt;/A&gt;"&lt;/P&gt;&lt;P&gt; HTTP Method : POST , Content Type FORM , Accept Type Any&lt;/P&gt;&lt;P&gt;in advanced setting :&lt;/P&gt;&lt;P&gt;Http Headers&lt;/P&gt;&lt;P&gt;name : "authorization" value : "Basic " + Base64.encode((client_id + ":" + client_secret).getBytes())&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 14:42:30 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-06-10T14:42:30Z</dc:date>
    <item>
      <title>Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347844#M115046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get data from Xero API which uses OAuth2.0 authentication. Any idea how can I achieve this in TOS-DI v7.3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Addition info:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;As mentioned in the document, I need to first generate a code(refresh token) using which I will get my Bearer Token.&lt;/P&gt;&lt;P&gt;Xero link:&lt;/P&gt;&lt;P&gt;https://developer.xero.com/documentation/guides/oauth2/auth-flow/#3-exchange-the-code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347844#M115046</guid>
      <dc:creator>ananyasingh</dc:creator>
      <dc:date>2021-06-10T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347845#M115047</link>
      <description>&lt;P&gt;Hi, you can use TrestClient component with Oauth2.0 as authentification parameter.&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347845#M115047</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-06-10T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347846#M115048</link>
      <description>&lt;P&gt;Umm yeah, but how to get the Bearer Token?&lt;/P&gt;&lt;P&gt;Okay, I think I need to edit my post to explain it in more detail.&lt;/P&gt;&lt;P&gt;Thanks anyways &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347846#M115048</guid>
      <dc:creator>ananyasingh</dc:creator>
      <dc:date>2021-06-10T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347847#M115049</link>
      <description>&lt;P&gt;everithing is explained in your doc :&lt;/P&gt;&lt;P&gt;you have to make a first call with a post method&lt;/P&gt;&lt;P&gt;https://identity.xero.com/connect/token&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; with some info in the body &lt;/P&gt;&lt;P&gt;and a specific header for the authorization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347847#M115049</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-06-10T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347848#M115050</link>
      <description>&lt;P&gt;you have to write a String named string wich contain the grant type (authorization_code), code and redirect_uri&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;B&gt;grant_type&lt;/B&gt;=authorization_code&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;code&lt;/B&gt;=The authorization code you received in the callback&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;redirect_uri&lt;/B&gt;=The same redirect URI that was used when requesting the code&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;with this value:&lt;/P&gt;&lt;P&gt;"grant_type=authorization_code&amp;amp;code=xxxxxx&amp;amp;redirect_uri=&lt;A href="https://myapp.com/redirect" alt="https://myapp.com/redirect" target="_blank"&gt;https://myapp.com/redirect&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could do this in a trowgenerator or a tfixedflowinput for example.&lt;/P&gt;&lt;P&gt;Then connect it to the trestclient with a main row.&lt;/P&gt;&lt;P&gt;In trestclient :&lt;/P&gt;&lt;P&gt;URL : "&lt;A href="https://identity.xero.com/connect/token" alt="https://identity.xero.com/connect/token" target="_blank"&gt;https://identity.xero.com/connect/token&lt;/A&gt;"&lt;/P&gt;&lt;P&gt; HTTP Method : POST , Content Type FORM , Accept Type Any&lt;/P&gt;&lt;P&gt;in advanced setting :&lt;/P&gt;&lt;P&gt;Http Headers&lt;/P&gt;&lt;P&gt;name : "authorization" value : "Basic " + Base64.encode((client_id + ":" + client_secret).getBytes())&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347848#M115050</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-06-10T14:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347849#M115051</link>
      <description>&lt;P&gt;okay, but that's step-3 but how to implement step-1 and 2?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347849#M115051</guid>
      <dc:creator>ananyasingh</dc:creator>
      <dc:date>2021-06-10T15:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347850#M115052</link>
      <description>&lt;P&gt;It's seems you can do part 1 and 2 with an app not talend cause you have redirection and not json response.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347850#M115052</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-06-10T15:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347851#M115053</link>
      <description>&lt;P&gt;yeah, I also kind of resonate with you on this.  Although I am hoping to get an official response from Talend.&lt;/P&gt;&lt;P&gt;I tried doing it in thttprequest and trestclient but none of them worked.&lt;/P&gt;&lt;P&gt;In trestclient, there is an option to check the "Follow redirects" and "Allow non-same host redirects" which I did and I gave my Xero creds in "Basic HTTP" authentication but no luck. It's returning an HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other Talend product that can handle this?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347851#M115053</guid>
      <dc:creator>ananyasingh</dc:creator>
      <dc:date>2021-06-10T15:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347852#M115054</link>
      <description>&lt;P&gt;maybe you have the info in the html , you can extact them if you can see specific pattern inside.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 16:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347852#M115054</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-06-10T16:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data using Xero API (Oauth2.0) in TOS - DI v7.3</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347853#M115055</link>
      <description>&lt;P&gt;nope. it was just a nonfunctional HTML doc with tags like username and password. My trestclient is just reading the content of the redirect URL and not passing the username password which I have provided in the component.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 09:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetch-data-using-Xero-API-Oauth2-0-in-TOS-DI-v7-3/m-p/2347853#M115055</guid>
      <dc:creator>ananyasingh</dc:creator>
      <dc:date>2021-06-11T09:35:36Z</dc:date>
    </item>
  </channel>
</rss>

