<?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: tgoogle Drive+Token in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287839#M61384</link>
    <description>&lt;P&gt;There is a link ("here" in red) at end in the last paragraph. It was built in 5.5 I believe, so should easily upgrade to whatever version you are using (I am assuming you are using a version older than 5.5).&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2017 16:23:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-09T16:23:57Z</dc:date>
    <item>
      <title>tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287836#M61381</link>
      <description>&lt;P&gt;Hello Community&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm looking for an automatic &amp;nbsp;solution to recover the token for googledrive(web service REST or function java )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I retrieve the token manually but it expires after 3500sec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287836#M61381</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-09T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287837#M61382</link>
      <description>&lt;P&gt;There is no "out of the box" automatic way of doing this. I wrote a tutorial a couple of years ago showing you this can be achieved using refresh tokens. The tutorial is here (&lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis&lt;/A&gt;). It may need a little tweaking (you can download the job), but it should give an idea of how to manage this.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287837#M61382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-09T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287838#M61383</link>
      <description>&lt;P&gt;Thanks for this excellent&amp;nbsp;&lt;SPAN&gt;tutorial .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how i can download the job ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287838#M61383</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-09T15:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287839#M61384</link>
      <description>&lt;P&gt;There is a link ("here" in red) at end in the last paragraph. It was built in 5.5 I believe, so should easily upgrade to whatever version you are using (I am assuming you are using a version older than 5.5).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287839#M61384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-09T16:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287840#M61385</link>
      <description>&lt;P&gt;Thank you for rour response .&lt;/P&gt;
&lt;P&gt;when i test your job with my drive file i have the erreur .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.&lt;BR /&gt;| tLogRow_2 |&lt;BR /&gt;|=--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------=|&lt;BR /&gt;|errorCode|errorMessage |&lt;BR /&gt;|=--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------=|&lt;BR /&gt;|401 |{&lt;BR /&gt;"error": {&lt;BR /&gt;"errors": [&lt;BR /&gt;{&lt;BR /&gt;"domain": "global",&lt;BR /&gt;"reason": "authError",&lt;BR /&gt;"message": "Invalid Credentials",&lt;BR /&gt;"locationType": "header",&lt;BR /&gt;"location": "Authorization"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"code": 401,&lt;BR /&gt;"message": "Invalid Credentials"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;|&lt;BR /&gt;'---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'&lt;BR /&gt;.---------+-------------------------------.&lt;BR /&gt;| tLogRow_4 |&lt;BR /&gt;|=--------+------------------------------=|&lt;BR /&gt;|errorCode|errorMessage |&lt;BR /&gt;|=--------+------------------------------=|&lt;BR /&gt;|400 |{&lt;BR /&gt;"error" : "invalid_grant"&lt;BR /&gt;}|&lt;BR /&gt;'---------+-------------------------------'&lt;/P&gt;
&lt;P&gt;The tokens do not exist. Revoke access using this URL &lt;A href="https://accounts.google.com/b/0/IssuedAuthSubTokens" target="_blank" rel="nofollow noopener noreferrer"&gt;https://accounts.google.com/b/0/IssuedAuthSubTokens&lt;/A&gt; and then run the job again&lt;BR /&gt;.------------+-----.&lt;BR /&gt;| tLogRow_5 |&lt;BR /&gt;|=-----------+----=|&lt;BR /&gt;|key |value|&lt;BR /&gt;|=-----------+----=|&lt;BR /&gt;|access_token| |&lt;BR /&gt;'------------+-----'&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287840#M61385</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-09T16:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287841#M61386</link>
      <description>&lt;P&gt;Have you downloaded the associated context variable file as well? You will need that. You can produce it yourself or download it. It will need your credentials in there. Also, there were a couple of issues raised (mentioned below in the comments) which some people had. I have described how to resolve those in the comments below as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287841#M61386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-09T16:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287842#M61387</link>
      <description>&lt;P&gt;yes i downloaed the context file and i repalced with my secret_id, client_id..&lt;/P&gt;&lt;P&gt;but when i use only refrech acces i have the erreur (in joint )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrAP"&gt;Acess_Token.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287842#M61387</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-09T16:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287843#M61388</link>
      <description>&lt;P&gt;Exception in component tRESTClient_1 (TEST2)&lt;BR /&gt;javax.ws.rs.BadRequestException: HTTP 400 Bad Request&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:507)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:902)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:426)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:456)&lt;BR /&gt;at local_project.test2_0_1.TEST2.tRESTClient_1Process(TEST2.java:1530)&lt;BR /&gt;at local_project.test2_0_1.TEST2.runJobInTOS(TEST2.java:2160)&lt;BR /&gt;at local_project.test2_0_1.TEST2.main(TEST2.java:2009)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287843#M61388</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-09T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287844#M61389</link>
      <description>&lt;P&gt;I have just downloaded this tutorial code onto my Mac (I wrote it on a Windows machine), cleared the contents of the context file and repopulated it with my Google Credentials (leaving both tokens blank). The first time I ran it I got an issue with Google not permitting me to run it because of a lack of a Product Name. This must be a new requirement since I wrote the tutorial. However, there was no need to edit the tutorial code, I simply went to the Google API Console and amended my credentials to be up to date (they were previously about 2 years old). I then ran it and it worked first time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I can only assume that your credentials must be wrong somewhere. You cannot use the credentials you will find in the file since they are rubbish for demonstration only. Below are the values you need for your first file. After the job has been run successfully for the first time, they will be populated completely. See that my tokens are missing. Also see where I have values in curly brackets, these need to be specific to your user. If you followed my tutorial in how I configured my Google API, the redirect_uri and scope should match below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;client_secret;{YOUR SECRET}
redirect_uri;http%3A%2F%2Flocalhost
refresh_token;
scope;https://www.googleapis.com/auth/drive
context_file;{YOUR CONTEXT FILE PATH}
access_token;
client_id;{YOUR CLIENT ID}&lt;/PRE&gt;
&lt;P&gt;If this doesn't work I am afraid I am not entirely sure what it is without looking at it myself. As I said, I downloaded the code and added it to my machine to test it and apart from playing with a few credential changes, it worked as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287844#M61389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-09T17:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287845#M61390</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for your responses .&lt;/P&gt;
&lt;P&gt;i have a erreur when i copy the URL in the web brwser&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ce site est inaccessible&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;localhost&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;n'autorise pas la connexion.&lt;/P&gt;
&lt;DIV&gt;
 &lt;P&gt;&amp;nbsp;&lt;/P&gt;
 &lt;UL&gt;
  &lt;LI&gt;Essayez avec&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://localhost.fr/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost.fr/&lt;/A&gt;&lt;/LI&gt;
  &lt;LI&gt;Effectuez une recherche Google sur&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.google.fr/search?q=localhost" target="_blank" rel="nofollow noopener noreferrer"&gt;localhost&lt;/A&gt;.&lt;/LI&gt;
 &lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="error-code"&gt;
 ERR_CONNECTION_REFUSED
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Oct 2017 09:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287845#M61390</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-10T09:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287846#M61391</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;it works&lt;/P&gt;&lt;P&gt;thank you very much &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 10:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287846#M61391</guid>
      <dc:creator>clubiste84</dc:creator>
      <dc:date>2017-10-10T10:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287847#M61392</link>
      <description>&lt;P&gt;Glad it works, but you selected the wrong post as the solution. If someone else gets this issue, it makes sense to send then to the post with the solution in it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287847#M61392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: tgoogle Drive+Token</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287848#M61393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot open the url of the solution.&lt;/P&gt;&lt;P&gt;Can anyone else provide me the Talend solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tgoogle-Drive-Token/m-p/2287848#M61393</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2018-09-10T16:06:29Z</dc:date>
    </item>
  </channel>
</rss>

