首页 > 微信 > 详细

微信公共号开发

时间:2015-04-21 09:55:48      阅读:304      评论:0      收藏:0      [点我收藏+]

1.进入这个链接

http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login

2.编写微信授权请求

/**

* 微信接入首页(授权页)

* @return

* @throws IOException 

*/

@RequestMapping("index")

public void wxIndex(HttpServletRequest request,HttpServletResponse response,String signature,String timestamp,String nonce,String echostr,Integer type) throws IOException{

PrintWriter out = response.getWriter();  

out.print(echostr);

return;

}

3.填写接口配置信息,此信息需要你有自己的服务器资源,填写的URL需要正确响应微信发送的Token验证

URL:http://域名或IP/wx/index.do

ToKen:wxtest

4.填写网页授权获取用户基本信息

 此处填写ip或域名对站点授权

本文出自 “逆天” 博客,谢绝转载!

微信公共号开发

原文:http://xxzjzsj.blog.51cto.com/3052058/1636333

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!