kth-alimtalk 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kth/alimtalk.rb +20 -20
- data/lib/kth/alimtalk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8074e1226a9eff09609953e2aaf6224480180881
|
|
4
|
+
data.tar.gz: f12c3938c2c8cfa154291a9492f27bdb2511203c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0726c2f974dddacdade82e97bea58de8287dd86991ca73874c16a8287ee64531139c3b2920083f91a4fda3de8e325a5953f3fa465d0873e8720b9314d2e9a393
|
|
7
|
+
data.tar.gz: ef4e333e195b088cfc582e5c75553f82abd765d94433288e6d3ad8860b702af2783cae56008ad849ebaef358e592afb25709005e1abb59a2857e26421a29e7df
|
data/lib/kth/alimtalk.rb
CHANGED
|
@@ -17,19 +17,19 @@ module Kth
|
|
|
17
17
|
def send_message(phone_number, callback, msg, template_code, failed_type, options)
|
|
18
18
|
request_url = "/kko/1/msg/#{client_id}"
|
|
19
19
|
params = {
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
20
|
+
'phone' => phone_number,
|
|
21
|
+
'callback' => callback,
|
|
22
|
+
'msg' => msg,
|
|
23
|
+
'template_code' => template_code,
|
|
24
|
+
'failed_type' => failed_type
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
if options.present?
|
|
28
|
-
params['
|
|
29
|
-
params['
|
|
30
|
-
params['
|
|
31
|
-
params['
|
|
32
|
-
params['
|
|
28
|
+
params['reqdate'] = options['request_date'].strftime("%Y%m%d%H%M%S") if options['request_date']
|
|
29
|
+
params['url'] = options['url'] if options['url']
|
|
30
|
+
params['url_button_text'] = options['url_button_text'] if options['url_button_text']
|
|
31
|
+
params['failed_subject'] = options['failed_subject'] if options['failed_subject']
|
|
32
|
+
params['failed_msg'] = options['failed_msg']
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
send_post_request request_url, params
|
|
@@ -84,19 +84,19 @@ module Kth
|
|
|
84
84
|
def msg_test(phone_number, callback, msg, template_code, failed_type, options)
|
|
85
85
|
request_url = "/kko/1/msg_test/#{client_id}"
|
|
86
86
|
params = {
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
87
|
+
'phone' => phone_number,
|
|
88
|
+
'callback' => callback,
|
|
89
|
+
'msg' => msg,
|
|
90
|
+
'template_code' => template_code,
|
|
91
|
+
'failed_type' => failed_type
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
if options.present?
|
|
95
|
-
params['
|
|
96
|
-
params['
|
|
97
|
-
params['
|
|
98
|
-
params['
|
|
99
|
-
params['
|
|
95
|
+
params['reqdate'] = options['request_date'].strftime("%Y%m%d%H%M%S") if options['request_date']
|
|
96
|
+
params['url'] = options['url'] if options['url']
|
|
97
|
+
params['url_button_text'] = options['url_button_text'] if options['url_button_text']
|
|
98
|
+
params['failed_subject'] = options['failed_subject'] if options['failed_subject']
|
|
99
|
+
params['failed_msg'] = options['failed_msg']
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
send_post_request request_url, params
|
data/lib/kth/alimtalk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kth-alimtalk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyoungwon Lee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|