微信网页授权获取code链接

本公众号授权

"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+ appid
+ "&redirect_uri="
+ redirect_uri
+ "&response_type=code&scope=snsapi_base#wechat_redirect";

第三方授权(open.weixin.qq.com)

 

"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
                        + appid
                        + "&redirect_uri="
                        + redirect_uri
                        + "&scope=snsapi_base&response_type=code&state=STATE&component_appid="+componentAppId+"#wechat_redirect"; 

 

posted @ 2015-10-27 16:05  ordinary01  阅读(1483)  评论(0编辑  收藏  举报