Maison  >  Article  >  Applet WeChat  >  使用Ruby微信开发的开源项目介绍

使用Ruby微信开发的开源项目介绍

高洛峰
高洛峰original
2017-03-19 17:44:221724parcourir

这篇文章主要介绍了Ruby微信开发的几个开源项目介绍,需要的朋友可以参考下


最近陆续有不少用Rails开发微信项目的朋友在Github上开始使用weixin_rails_middleware、weixin_authorize,也不少人谈到Ratchet,春节开始到现在,一直有做微信的开发,现在在论坛上发布出来,希望让更多人知道这些gem的存在,更快速的完成你们手中的任务。


1、一(两)条命令搭建Rails微信版本

按照最简洁的速度,10分钟可以跑起一个微信的项目:

https://github.com/lanrion/weixin_rails_middleware

自动验证微信请求;
一(两)条命令,一个配置,简练风格;
1.支持Rails 3, Rails 4;
2.支持多公众账号平台,例如类似微盟;
3.支持单个用户,即一个账号,但又不想保存在数据库;
4.提供回复消息辅助方法;
5.提供所有微信消息类型的业务逻辑的回复处理;
6.wiki 中提供自定义菜单中的实现案例;
4.自动生成token;

详细见:
https://github.com/lanrion/weixin_rails_middleware/wiki/
https://github.com/lanrion/weixin_rails_middleware


2、微信高级API实现:

https://github.com/lanrion/weixin_authorize

1.除 Oauth 2 未实现,其他API均已实现;
2.支持Redis存储access_token;
还是直接看wiki 吧:https://github.com/lanrion/weixin_authorize/wiki/Getting-Started

3、集成Ratchet v2.0.1的gem: twitter_ratchet_rails

即:http://goratchet.com/ 压缩后非常小,十分适合wap使用,但有一个不足之处在于,组件不够丰富,期待更丰富的实现
没其他多余的好说,看官直接点击:

https://github.com/lanrion/twitter_ratchet_rails

4、使用例子(可能没有及时更新上最新版本)

Rails 4: https://github.com/lanrion/weixin_rails_middleware_example

Rails 3: https://github.com/lanrion/weixin_rails_3

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn