Beispiel #1
0
 /// <summary>
 /// 获取 OAuth 2.0 access_token
 /// </summary>
 /// <param name="code"></param>
 /// <returns></returns>
 public static OAuth2AccessToken GetOAuthAccessToken(string code, string appId, string appSecret)
 {
     return(OAuth2.GetOAuthAccessToken(code, appId, appSecret));
 }
Beispiel #2
0
 /// <summary>
 /// OAuth 2.0 验证通过获取用户信息
 /// </summary>
 /// <param name="openId"></param>
 /// <param name="oAuthAccessToken">OAuth 2.0 access_token</param>
 /// <returns></returns>
 public static OAuth2UserInfo GetOAuthUserInfo(string openId, string oAuthAccessToken)
 {
     return(OAuth2.GetUserInfo(openId, oAuthAccessToken));
 }