README.md in aliyun-rails-0.1.11 vs README.md in aliyun-rails-0.1.12

- old
+ new

@@ -3,11 +3,11 @@ <p align="center"> <a href=" https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/Aliyun.svg"></a> </p> -<h1 align="center">非官方SDK套件-用于RAILS项目的</h1> +<h1 align="center">非官方SDK套件-用于RAILS项目管理</h1> <p align="center"> <a href="https://badge.fury.io/rb/aliyunsdkcore"><img src="https://badge.fury.io/rb/aliyunsdkcore.svg" alt="Gem Version"></a> <a href="https://travis-ci.org/aliyun/openapi-core-ruby-sdk"><img src="https://travis-ci.org/aliyun/openapi-core-ruby-sdk.svg?branch=master" alt="Build Status"></a> <a href="https://ci.appveyor.com/project/aliyun/openapi-core-ruby-sdk/branch/master"><img src="https://ci.appveyor.com/api/projects/status/uyepkk5bjbynofvu/branch/master?svg=true" alt="Build status"></a> @@ -38,9 +38,18 @@ client = Dysms.new( access_key_id: ENV['ACCESS_KEY_ID'], access_key_secret: ENV['ACCESS_KEY_SECRET'], ) +# 可以直接将API参数放到 initializers下 +# Aliyun::Rails.config do |i| +# i.access_key_id = "XXX" +# i.access_key_secret = "YYYY" +# end +# 随后直接初始化 +# client = Dysms.new + +# then use the send_sms method response = client.send_sms("1380000000", "SMS_10010", {param1: "11"}, "SIGN_NAME") puts response ``` \ No newline at end of file