C#获取支付宝用户信息,基于官方SDK写的一个小DEMO
Auth_code = Request.QueryString["auth_code"];
if (string.IsNullOrEmpty(Auth_code))
{
var url = string.Format("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id={0}&scope=auth_user&redirect_uri={1}", appid, ENCODED_URL);
Response.Redirect(url);
}
1