示例#1
0
        /// <summary><see cref="OAuthAuthenticator.Initialize"/></summary>
        protected override void Initialize()
        {
            base.Initialize();
            GoogleConsumerInfo consumerInfo = GoogleServerConnector.GetConsumerInfo();

            ClientId  = consumerInfo.Key;
            SecretKey = consumerInfo.Secret;
        }
        /// <summary>
        /// Returns consumer information about google shared application.
        /// </summary>
        /// <returns>Consumer information.</returns>
        public GoogleConsumerInfo GetConsumerInfo()
        {
            var googleServerConnector = new GoogleServerConnector();

            return(googleServerConnector.GetConsumerInfo());
        }