Sha256: be049d0c09fb5db08d67b4227b7b0ed42ce692423e1f7409ff54904a423d8f0c

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 Bytes

Contents

module Wechat
  module Api
    #
    module Message
      def send_template(tmp_id, openid, url, data = {})
        params = {
          touser: openid,
          template_id: tmp_id,
          url: url,
          data: data
        }
        post 'message/template/send', params
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wechat-api-0.4.3 lib/wechat/api/message.rb
wechat-api-0.4.2 lib/wechat/api/message.rb
wechat-api-0.4.1 lib/wechat/api/message.rb
wechat-api-0.4.0 lib/wechat/api/message.rb
wechat-api-0.3.0 lib/wechat/api/message.rb
wechat-api-0.2.1 lib/wechat/api/message.rb
wechat-api-0.2.0 lib/wechat/api/message.rb
wechat-api-0.1.3 lib/wechat/api/message.rb
wechat-api-0.1.1 lib/wechat/api/message.rb
wechat-api-0.1.0 lib/wechat/api/message.rb