Пример #1
0
        /// <summary>
        /// 应用授权
        /// </summary>
        /// <returns></returns>
        public static AccessGrant AppAuthorize()
        {
            EnsureInit();
            log.Info("app authorize begin");
            AccessGrant accessGrant = OAuthProvider.AppAuthorize();

            log.InfoFormat("app authorize success. access token: {0}", ag.AccessToken);
            return(accessGrant);
        }