kotsms2 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +4 -2
- data/lib/kotsms2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6a65925dfc194dbb5a11b89fc0f827576537297
|
4
|
+
data.tar.gz: 28254058990bdfce873d5d94f70e45fd8e011949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d789449dc7212ba3105b1a04d7e40ffb951a4c993a4bfd94148136d778ffff250e476a26be1a60f57d59c2b4844f89ceba0e60000168442129fba8edc077421
|
7
|
+
data.tar.gz: 567a8409d0819038ff613675bf744631b966edaed600d3abcbc7369ea1cc58a5da226db93d867b766f1e546250336d094107c77aedcb015cd6f41f3eb9156841
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -42,7 +42,9 @@ gem 'kotsms2', '~> 1.0.0'
|
|
42
42
|
require 'kotsms2'
|
43
43
|
|
44
44
|
# Kotsms2 是走 https 的方式進行系統操作
|
45
|
-
sms_client = Kotsms2::Client.new(
|
45
|
+
sms_client = Kotsms2::Client.new(
|
46
|
+
username: '會員帳號', password: '會員密碼', agent: "Mozilla/5.0 (可自訂 user-agent)"
|
47
|
+
)
|
46
48
|
```
|
47
49
|
|
48
50
|
使用範例
|
@@ -65,7 +67,7 @@ sms_client.account_is_available
|
|
65
67
|
手機號碼格式 0911222333 ( 台灣手機 )、886911222333 ( 國碼 + 手機號碼 )
|
66
68
|
|
67
69
|
```ruby
|
68
|
-
#
|
70
|
+
# 簡訊王的內容需要為 Big 5 編碼,本套件會自動轉換;若有無法轉換的字,會替換成 ? 問號
|
69
71
|
sms_client.send_message to: '手機號碼', content: "簡訊內容.."
|
70
72
|
```
|
71
73
|
|
data/lib/kotsms2/version.rb
CHANGED