Example #1
0
 static void Main(string[] args)
 {
     IFactory qqFactory = new QQOAuthServiceFactory();
     IOAuthService qqOAuth = qqFactory.GetOAuthService();
     string code = "Xssj67H3df";
     string appId = "127841628";
     string token = qqOAuth.GetTokenByCode(code, appId);
     Console.WriteLine(string.Format("you get the token :{0}", token));
     Console.ReadLine();
 }
Example #2
0
        static void Main(string[] args)
        {
            IFactory      qqFactory = new QQOAuthServiceFactory();
            IOAuthService qqOAuth   = qqFactory.GetOAuthService();
            string        code      = "Xssj67H3df";
            string        appId     = "127841628";
            string        token     = qqOAuth.GetTokenByCode(code, appId);

            Console.WriteLine(string.Format("you get the token :{0}", token));
            Console.ReadLine();
        }