fastlane-plugin-line_notify 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f9b37e71293031eaf8ac9369ae3ff0c24a2d35e
|
4
|
+
data.tar.gz: 3e4f942df8c22e7a345996f069528c507451fdb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed8c43737b15bd117df3d9883af1109310ad9b7de80dcdd20e58c8e7e8509d2ccdb9498dd184fe860708af35b1b67845b2ea1d031de690255a997fd2a5e3bd7
|
7
|
+
data.tar.gz: d64c3e19aa7c4287949bd908f2cd6a6f742bbfb7bd98f9ce42e64c2fc415120582ec10aee2fb7db6dca8efd0ebfedea40b8a2a60435c67a88b36401adc3f3403
|
data/README.md
CHANGED
@@ -23,10 +23,10 @@ To be able to send message to Line Notify
|
|
23
23
|
|
24
24
|
```ruby
|
25
25
|
line_notify(
|
26
|
-
access_token:
|
27
|
-
message:
|
28
|
-
sticker_package_id:
|
29
|
-
sticker_id:
|
26
|
+
access_token: "Your Access Token",
|
27
|
+
message: "Hello World 🌤", #Optional String
|
28
|
+
sticker_package_id: "1", #Optional String
|
29
|
+
sticker_id: "133", #Optional String
|
30
30
|
image_full_size: nil, #Optional **URL** String
|
31
31
|
image_thumbnail: nil, #Optional **URL** String
|
32
32
|
)
|
@@ -8,7 +8,8 @@ module Fastlane
|
|
8
8
|
def self.run(params)
|
9
9
|
|
10
10
|
access_token = params[:access_token]
|
11
|
-
|
11
|
+
params[:message] = params[:message].to_s || ''
|
12
|
+
|
12
13
|
uri = URI.parse('https://notify-api.line.me/api/notify')
|
13
14
|
Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |req|
|
14
15
|
request = Net::HTTP::Post.new(uri)
|