Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 789 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 789 Bytes

Qweixin

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem "qweixin"

And then execute:

$ bundle

Or install it yourself as:

$ gem install qweixin

Usage

Add config/initializers/qweixin.rb

Rails.application.config.qweixin.secret = "balabala_secret"

Qweixin::Client.configure do |config|
  config.appid = ENV["WEIXIN_APPID"] # 小程序唯一凭证,即 AppID
  config.secret = ENV["WEIXIN_APPSECRET"] # 小程序唯一凭证密钥,即 AppSecret,获取方式同 appid
end

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.