Exemple #1
0
        private void setupGoogleAccess()
        {
            this.loadSettings();
            if (this.OAuthAccessCode != "")
            {
                this.googleAccess = new GoogleSpreadsheetAccess(
                    this.googleAppName,
                    this.googleClientId,
                    this.googleClientSecret,
                    this.OAuthAccessCode,
                    this.OAuthAccessToken,
                    this.OAuthRefreshToken
                    );
                this.googleAccess.JobInfoReceived += googleAccess_JobInfoReceived;
                string outAccessToken;
                string outRefreshToken;
                this.googleAccess.connect(out outAccessToken, out outRefreshToken);

                this.saveSetting("OAuthAccessToken", outAccessToken);
                this.saveSetting("OAuthRefreshToken", outRefreshToken);
                this.googleConnectionComplete = true;
            }
        }
Exemple #2
0
        private void setupGoogleAccess()
        {
            this.loadSettings();
            if (this.OAuthAccessCode != "")
            {
                this.googleAccess = new GoogleSpreadsheetAccess(
                    this.googleAppName,
                    this.googleClientId,
                    this.googleClientSecret,
                    this.OAuthAccessCode,
                    this.OAuthAccessToken,
                    this.OAuthRefreshToken
                );
                this.googleAccess.JobInfoReceived += googleAccess_JobInfoReceived;
                string outAccessToken;
                string outRefreshToken;
                this.googleAccess.connect(out outAccessToken, out outRefreshToken);

                this.saveSetting("OAuthAccessToken", outAccessToken);
                this.saveSetting("OAuthRefreshToken", outRefreshToken);
                this.googleConnectionComplete = true;
            }
        }