Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This tutorial was originally written in 2014 for my website. Although the Google screenshots may be slightly out of date and I wrote this using version 5.5.1 of Talend, you should still be able to make use of this. I have attached a copy of the job and a copy of the parameters file I used for this.
Google make use of the OAuth 2.0 protocol for authentication for (I think, but am happy to be corrected) all of their services. They do a pretty good job of describing the protocol. Once you have read through the documentation you should have a better idea of what you are doing, which should make this easier. The Google documentation is here.
The first thing that needs to be done is to create a Google Project. This is described below....
Create a Google Project
I assume you are using the Open Studio. If so you can use GitHub or SVN. Just hook it up to your working folder.With deploying, you will simply have to build the jobs and run them (maybe using the crontab or another scheduler). The build process will produce a zip file which contains the compiled code and a batch file to start the job.
Yes, you can use a tContextLoad component to bring in context variable values at the beginning of a job.
I see. This may be an over complication, but I cover a really good framework for enabling this. It is a long read, but might give you a few ideas. The blogs are here:
Hi, is there any way to make the refresh token procedure atomatic?
I need to schedule a job to move file from a repository to gdrive continuosly and the manually part of your nice tutorial doesn't work for me.
Thank you in advance for reply
Hi, just tried today with two other scopes
https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly
Calling this api https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/login
Works perfectly, it gives me new perspectives
Hi, just tried today with two other scopes
https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly
Calling this api https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/login
Works perfectly, it gives me new perspectives
Glad that it helped!