Home >WeChat Applet >WeChat Development >Introduction to open source projects developed using Ruby WeChat

Introduction to open source projects developed using Ruby WeChat

高洛峰
高洛峰Original
2017-03-19 17:44:221809browse

This article mainly introduces several open source projects developed by Ruby WeChat. Friends who need it can refer to it


Recently, many developers have developed with RailsWeChat project My friends started using weixin_rails_middleware and weixin_authorize on Github, and many people talked about Ratchet. From the Spring Festival to now, I have been developing WeChat. Now I have published it on the forum, hoping to let more people know about the existence of these gems, and more Complete the tasks in your hands quickly.


1. One (two) commands to build the Rails WeChat version

At the simplest speed, you can run a WeChat project in 10 minutes:

https ://github.com/lanrion/weixin_rails_middleware

Automatic verificationWeChat request;
One (two) commands, one configuration, concise style;
1.Support Rails 3, Rails 4;
2. Support multiple public account platforms, such as Weimob;
3. Support a single user, that is, one account, but do not want to save it in the database;
4. Provide reply message assistance Method;
5. Provide business logic reply processing for all WeChat message types;
6. Implementation cases in custom menu are provided in the wiki;
4. Automatically generate tokens;

For details, see:
https://github.com/lanrion/weixin_rails_middleware/wiki/
https://github.com/lanrion/weixin_rails_middleware


2 , WeChat Advanced API Implementation:

https://github.com/lanrion/weixin_authorize

1. Except for Oauth 2 which is not implemented, other APIs have been implemented;
2. Support Redis to store access_token;
Let’s check the wiki directly: https://github.com/lanrion/weixin_authorize/wiki/Getting-Started

3. Integration The gem of Ratchet v2.0.1: twitter_ratchet_rails

is: http://goratchet.com/ It is very small after compression and is very suitable for WAP use. However, one shortcoming is that the components are not rich enough. I look forward to richer ones. There is nothing else to say about the implementation, just click here:

https://github.com/lanrion/twitter_ratchet_rails

4. Usage examples (may not be updated in time)

Latest version)Rails 4: https://github.com/lanrion/weixin_rails_middleware_example

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

The above is the detailed content of Introduction to open source projects developed using Ruby WeChat. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn