WechatSDK for RubyMotion

  • RubyMotion wrapper for WechatSDK
  • Improving ...
  • Update** not use pod, use vendor

Setup

Add MotionWechat to your Gemfile, and run bundle install:

gem 'motion-wechat'

Edit the Rakefile of your RubyMotion project and add the following require line:

# After the line that require Rubymotion
require 'bundler'
Bundler.require

Then setup configuration in your Rakefile:

MotionWechat::Config.setup(app, 'app_key', 'app_secret')

Usage

Basic:

MotionWechat::API.instance.send_webpage "http://www.rubymotion.com", \
  title: "Ruby Motion", description: "Awesome way to write ios/osx app"

TODO

  • delegate helpers, i.e. WXApi.handleOpenURL(url, delegate:self)

Contributions

Fork, please!