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:
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!

许多人也许会注意到一个现象,那就是在一些现代编程语言(当然,并不是指“最近出现”的编程语言)中,自增和自减运算符被取消了。也就是说,在这些语言中不存在i++或j--这样的表达,而是只存在i+=1或j-=1这样的表达方式了。本回答将从设计哲学这个角度上探讨这一现象产生的背景与原因。严格来说,说"i++正在消失"也许有失偏颇,因为主流编程语言中似乎只有Python、Rust和Swift不支持自增自减运算符。当我第一次接触Python时,这也

PHP是一种开源的脚本语言,广泛应用于Web开发和服务器端编程,尤其在微信开发中得到了广泛的应用。如今,越来越多的企业和开发者开始使用PHP进行微信开发,因为它成为了一款真正的易学易用的开发语言。在微信开发中,消息的加密和解密是一个非常重要的问题,因为它们涉及到数据的安全性。对于没有加密和解密方式的消息,黑客可以轻松获取到其中的数据,对用户造成威胁

Go与Ruby的主要区别在于:Go是一种静态类型编译语言,支持轻量级并行和高效内存管理,适合编写高并发应用程序;Ruby是一种动态类型解释语言,支持真正的并行但内存管理需手动控制,适合编写灵活的Web应用程序。

Ruby操作MySQL使用mysql2连接mysql并操作mysql。geminstallmysql2连接mysql建立连接:require'mysql2'conn=Mysql2::Client.new({host:'192.168.200.73',username:'root',password:'P@ssword1!'})接受的连接选项包括:Mysql2::Clie

如何使用MySQL和Ruby实现一个简单的数据分析报表功能引言:在当今数据驱动的时代,数据分析对于企业的决策和发展起到了至关重要的作用。而数据分析报表作为数据分析的重要组成部分,对于对数据进行整理、可视化和解读具有重要意义。本文将介绍如何使用MySQL和Ruby来实现一个简单的数据分析报表功能,并提供相应的代码示例。一、数据库设计与建表要实现数据分析报表功能

在微信公众号开发中,用户标签管理是一个非常重要的功能,可以让开发者更好地了解和管理自己的用户。本篇文章将介绍如何使用PHP实现微信用户标签管理功能。一、获取微信用户openid在使用微信用户标签管理功能之前,我们首先需要获取用户的openid。在微信公众号开发中,通过用户授权的方式获取openid是比较常见的做法。在用户授权完成后,我们可以通过以下代码获取用

微信是目前全球用户规模最大的社交平台之一,随着移动互联网的普及,越来越多的企业开始意识到微信营销的重要性。在进行微信营销时,客服服务是至关重要的一环。为了更好地管理客服聊天窗口,我们可以借助PHP语言进行微信开发。一、PHP微信开发简介PHP是一种开源的服务器端脚本语言,广泛运用于Web开发领域。结合微信公众平台提供的开发接口,我们可以使用PHP语言进行微信

如何使用MySQL和Ruby实现一个简单的数据转换功能在实际的开发工作中,经常需要进行数据转换,将一个数据格式转化为另一个数据格式。本文将介绍如何使用MySQL和Ruby来实现一个简单的数据转换功能,并且提供具体的代码示例。首先,我们需要安装并配置MySQL和Ruby环境。确保已经安装了MySQL数据库,并可以通过命令行或其他工具连接到数据库。另外,需要安装


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
