Sha256: f55fc220ef58a60e721d83e969383f65ffe6475aa491d56c5177c4b9f51a1596

Contents?: true

Size: 618 Bytes

Versions: 3

Compression:

Stored size: 618 Bytes

Contents

require "aliyun/cloud_sms/version"
require 'aliyun/cloud_sms/configure'
require 'aliyun/cloud_sms/client'

module Aliyun
  module CloudSms
    extend Configure

    def self.send_msg(mobile, template_code, template_param)
      default_client.send_msg mobile, template_code, template_param
    end

    def self.client(access_key_id, access_key_secret, sign_name)
      Aliyun::Client.new access_key_id, access_key_secret, sign_name
    end

    def self.default_client
      Aliyun::CloudSms::Client.new Aliyun::CloudSms.access_key_id, Aliyun::CloudSms.access_key_secret, Aliyun::CloudSms.sign_name
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aliyun-cloud_sms-0.2.0 lib/aliyun/cloud_sms.rb
aliyun-cloud_sms-0.1.1 lib/aliyun/cloud_sms.rb
aliyun-cloud_sms-0.1.0 lib/aliyun/cloud_sms.rb