All Projects → lanrion → Weixin_rails_middleware

lanrion / Weixin_rails_middleware

Licence: mit
微信集成 ruby weixin_rails_middleware for integration weixin.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Weixin rails middleware

Python Weixin
微信(weixin|wechat) Python SDK 支持开放平台和公众平台 支持微信小程序云开发
Stars: ✭ 746 (+80.19%)
Mutual labels:  wechat-sdk, weixin
Werobot
WeRoBot 是一个微信公众号开发框架
Stars: ✭ 3,973 (+859.66%)
Mutual labels:  wechat-sdk, weixin
Weixin Java Miniapp Demo
基于Spring Boot 和 WxJava 实现的微信小程序Java后端Demo
Stars: ✭ 779 (+88.16%)
Mutual labels:  wechat-sdk, weixin
Fastbootweixin
基于Spring Boot的注解驱动式公众号极速开发框架,用注解重新定义公众号开发
Stars: ✭ 640 (+54.59%)
Mutual labels:  wechat-sdk, weixin
Wechat
WeChat SDK for Go (微信SDK:简单、易用)
Stars: ✭ 3,144 (+659.42%)
Mutual labels:  wechat-sdk, weixin
Weixin Sdk
微信公众平台(订阅号、服务号、企业号、小程序)、微信开放平台和微信支付 Java SDK
Stars: ✭ 933 (+125.36%)
Mutual labels:  wechat-sdk, weixin
Weixinmpsdk
微信全平台 SDK Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 6.0。已支持微信公众号、小程序、小游戏、企业号、企业微信、开放平台、微信支付、JSSDK、微信周边等全平台。 WeChat SDK for C#.
Stars: ✭ 7,098 (+1614.49%)
Mutual labels:  wechat-sdk, weixin
Wechat
Wechat API wrapper in Elixir
Stars: ✭ 70 (-83.09%)
Mutual labels:  wechat-sdk, weixin
Go Workwx
a sensible Work Weixin(企业微信, Wechat Work) SDK for Go
Stars: ✭ 181 (-56.28%)
Mutual labels:  wechat-sdk, weixin
Weixin Java Cp Demo
基于Spring Boot 和 WxJava 实现的微信企业号/企业微信 后端Demo
Stars: ✭ 175 (-57.73%)
Mutual labels:  wechat-sdk, weixin
wechat-sdk
微信登录支付sdk,支持小程序,APP登录,正在重构。QQ群:879729420
Stars: ✭ 73 (-82.37%)
Mutual labels:  weixin, wechat-sdk
go-wechat
💥weixin、wechat、微信公众平台、企业微信 golang/go sdk
Stars: ✭ 18 (-95.65%)
Mutual labels:  weixin, wechat-sdk
Wechatpy
WeChat SDK for Python
Stars: ✭ 3,016 (+628.5%)
Mutual labels:  wechat-sdk, weixin
Weapp Douban Film
微信小程序-豆瓣电影
Stars: ✭ 303 (-26.81%)
Mutual labels:  weixin
Wechat kit
flutter版微信登录/分享/支付
Stars: ✭ 347 (-16.18%)
Mutual labels:  weixin
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-28.99%)
Mutual labels:  weixin
Weixin Spider
微信公众号爬虫,公众号历史文章,文章评论,文章阅读及在看数据,可视化web页面,可部署于Windows服务器。基于Python3之flask/mysql/redis/mitmproxy/pywin32等实现,高效微信爬虫,微信公众号爬虫,历史文章,文章评论,数据更新。
Stars: ✭ 287 (-30.68%)
Mutual labels:  weixin
Jeewx
JAVA版免费微信管家系统。支持微信公众号、微信企业号、支付宝服务窗等多触点管理。Jeewx实现了微信、支付窗、微信企业号的基础管理功能,便于用户二次开发。2014年荣获CSDN开发商大会第一名
Stars: ✭ 365 (-11.84%)
Mutual labels:  weixin
Wepay
轻量的微信支付组件(A Lightweight Wechat Pay Component)
Stars: ✭ 343 (-17.15%)
Mutual labels:  wechat-sdk
Weixin Java Mp Demo Springmvc
基于Spring MVC 和 WxJava 实现的微信公众号Java后端Demo
Stars: ✭ 285 (-31.16%)
Mutual labels:  weixin

WeixinRailsMiddleware

Gem Version

该项目使用MIT-LICENSE.

https://rubygems.org/gems/weixin_rails_middleware

已经实现消息体签名及加解密,升级与使用,详见Wiki 实现消息体签名及加解密

微信企业版本

https://github.com/lanrion/qy_wechat

https://github.com/lanrion/qy_wechat_api

使用特别说明

支持Rails版本

已经支持 Rails 3,Rails 4,Rails 5,Rails 6

参考示例

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

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

相关gem推荐使用

查看 Wiki:

使用公司列表

如果您或者您的公司正在使用当中,欢迎加入此列表:

https://github.com/lanrion/weixin_rails_middleware/wiki/gem-users-list

实现功能

  • 自动验证微信请求。

  • 无需拼接XML格式,只需要使用 ReplyWeixinMessageHelper 辅助方法,即可快速回复。 使用方法: render xml: reply_text_message("Your Message: #{current_message.Content}")

  • 支持自定义token,适合一个用户使用。

  • 支持多用户token: 适合多用户注册网站,每个用户有不同的token,通过 weixin_rails_middleware.rb 配置好存储token的Model与字段名,即可。

  • 文本回复: reply_text_message(content)

  • 音乐回复: reply_music_message(music), generate_music(title, desc, music_url, hq_music_url)

  • 图文回复: reply_news_message(articles), generate_article(title, desc, pic_url, link_url)

  • 视频回复: reply_video_message(video)

  • 语音回复: reply_voice_message(voice)

  • 图片回复: reply_image_message(image)

  • 地理位置回复: 自定义需求。

  • 其他高级API实现:weixin_authorize

如何测试?

安装 ngrok,解压后跑 ngrok 4000

然后会产生以下信息:

Tunnel Status                 online
Version                       1.6/1.5
Forwarding                    http://e0ede89.ngrok.com -> 127.0.0.1:4000
Forwarding                    https://e0ede89.ngrok.com -> 127.0.0.1:4000
Web Interface                 127.0.0.1:4040
# Conn                        67
Avg Conn Time                 839.50ms

域名为 http://e0ede89.ngrok.com。 注意非付费版本域名每次会随机生成,不是固定的。

Ngrok已墙,你懂得的,ngrok 已墙,请使用localtunnel.me,使用方法:

npm install -g localtunnel

$ lt --port 8000
# your url is: https://gqgh.localtunnel.me

贡献你的代码

  1. Fork 项目
  2. 创建自己的功能分支 (git checkout -b my-new-feature).
  3. 提交你的修改 (git commit -am 'Add some feature').
  4. 推荐到远程分支 (git push origin my-new-feature).
  5. 提交PR审核.
  6. 可使用 weixin_rails_middleware_example, 来测试

Bugs 和反馈

如果你发现有出现任何的bug,请在 https://github.com/lanrion/weixin_rails_middleware/issues 记录你的bug详细信息,

或者在 Ruby China 开帖 @ruby_sky, 个人邮箱回复速度相对慢.

推荐阅读

参考致谢

在微信回复信息XML的封装方法,借鉴了 rack-weixin 实现,特此感谢!

捐赠支持

如果你觉得我的gem对你有帮助,欢迎打赏支持,😄

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].