Beispiel #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;
            }
        }
Beispiel #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;
            }
        }