Short description and motivation.
How to use my plugin.
Add this line to your application's Gemfile:
gem 'wechat_third_party_platform'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wechat_third_party_platform
Create config/initializers/wechat_third_party_platform.rb and put following configurations into it.
# required
//登录授权的发起页域名需要跟在第三方平台配置域名一致
WechatThirdPartyPlatform.auth_redirect_url = 'http://xifengzhu.ngrok.io/wtpp/wechat/auth_callback'
WechatThirdPartyPlatform.component_appid = 'wxxxxxx'
WechatThirdPartyPlatform.component_appsecret = 'xxxxxxxxxxx'
// 消息校验Token
WechatThirdPartyPlatform.message_token = 'xxxxxx'
// 消息加解密Key
WechatThirdPartyPlatform.message_key = 'xxxxxx'
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.