微信公共号开发

时间:2015-04-21 09:55:48   收藏:0   阅读:306

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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!