line-bot-api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/line/bot/api.rb +1 -1
- data/lib/line/bot/api/version.rb +1 -1
- data/lib/line/bot/client.rb +7 -7
- 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: 0bc1435114630673967acbcc101d86e26ee6db03
|
4
|
+
data.tar.gz: 50ef3f306a49db2e6e7ba0d50f93b227de2d94ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eb5e83737f0002d813607945e0b603e68d3934f57bed92b1b1783e5782eac5414f7a490a2e6653d7ab63ff2f4afc594aec981c9031f3c6c3e487ff242a9ebac
|
7
|
+
data.tar.gz: bb22ca0e8e6d85b1c64062df15047e56c1f1493a837e0e5a4bf3d1fbbae4632bf3f099a275a89553a832e7f9b9674f07671461689234ec57c7738507d17eda83
|
data/lib/line/bot/api.rb
CHANGED
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -73,7 +73,7 @@ module Line
|
|
73
73
|
request = Request.new do |config|
|
74
74
|
config.httpclient = httpclient
|
75
75
|
config.endpoint = endpoint
|
76
|
-
config.endpoint_path = '/message/push'
|
76
|
+
config.endpoint_path = '/bot/message/push'
|
77
77
|
config.credentials = credentials
|
78
78
|
config.to = user_id
|
79
79
|
config.messages = messages
|
@@ -96,7 +96,7 @@ module Line
|
|
96
96
|
request = Request.new do |config|
|
97
97
|
config.httpclient = httpclient
|
98
98
|
config.endpoint = endpoint
|
99
|
-
config.endpoint_path = '/message/reply'
|
99
|
+
config.endpoint_path = '/bot/message/reply'
|
100
100
|
config.credentials = credentials
|
101
101
|
config.reply_token = token
|
102
102
|
config.messages = messages
|
@@ -120,7 +120,7 @@ module Line
|
|
120
120
|
request = Request.new do |config|
|
121
121
|
config.httpclient = httpclient
|
122
122
|
config.endpoint = endpoint
|
123
|
-
config.endpoint_path = '/message/multicast'
|
123
|
+
config.endpoint_path = '/bot/message/multicast'
|
124
124
|
config.credentials = credentials
|
125
125
|
config.to = to
|
126
126
|
config.messages = messages
|
@@ -135,7 +135,7 @@ module Line
|
|
135
135
|
request = Request.new do |config|
|
136
136
|
config.httpclient = httpclient
|
137
137
|
config.endpoint = endpoint
|
138
|
-
config.endpoint_path = "/group/#{group_id}/leave"
|
138
|
+
config.endpoint_path = "/bot/group/#{group_id}/leave"
|
139
139
|
config.credentials = credentials
|
140
140
|
end
|
141
141
|
|
@@ -148,7 +148,7 @@ module Line
|
|
148
148
|
request = Request.new do |config|
|
149
149
|
config.httpclient = httpclient
|
150
150
|
config.endpoint = endpoint
|
151
|
-
config.endpoint_path = "/room/#{room_id}/leave"
|
151
|
+
config.endpoint_path = "/bot/room/#{room_id}/leave"
|
152
152
|
config.credentials = credentials
|
153
153
|
end
|
154
154
|
|
@@ -161,7 +161,7 @@ module Line
|
|
161
161
|
#
|
162
162
|
# @return [Net::HTTPResponse]
|
163
163
|
def get_message_content(identifier)
|
164
|
-
endpoint_path = "/message/#{identifier}/content"
|
164
|
+
endpoint_path = "/bot/message/#{identifier}/content"
|
165
165
|
get(endpoint_path)
|
166
166
|
end
|
167
167
|
|
@@ -171,7 +171,7 @@ module Line
|
|
171
171
|
#
|
172
172
|
# @return [Net::HTTPResponse]
|
173
173
|
def get_profile(user_id)
|
174
|
-
endpoint_path = "/profile/#{user_id}"
|
174
|
+
endpoint_path = "/bot/profile/#{user_id}"
|
175
175
|
get(endpoint_path)
|
176
176
|
end
|
177
177
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: line-bot-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LINE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|