line-bot-api 1.2.1 → 1.2.2
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/version.rb +1 -1
- data/lib/line/bot/client.rb +49 -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: 883ff8a42d0bb8c9d6686329df0110986bbd98dd
|
4
|
+
data.tar.gz: ea73ff86692858dfb602406fe322263b29939747
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30bd0b9b41bcedfb04436ded6d59e98dfc9a7c980073383193e65718ac4d6c507834ef94456cde68a6eca56ae36ba889ed595faa73639fe8359d6fb6ba703fab
|
7
|
+
data.tar.gz: 1e6f4243bd2363cbb4d685297300e5a07fe2139810ef61d177dde9ce25e6f877f90fddb3c7822131634e403ed6751f7b84cd9db8b531f5065114663e87274e43
|
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -167,7 +167,7 @@ module Line
|
|
167
167
|
|
168
168
|
# Get an user's profile.
|
169
169
|
#
|
170
|
-
# @param user_id [String] User's
|
170
|
+
# @param user_id [String] User's identifier
|
171
171
|
#
|
172
172
|
# @return [Net::HTTPResponse]
|
173
173
|
def get_profile(user_id)
|
@@ -175,6 +175,54 @@ module Line
|
|
175
175
|
get(endpoint_path)
|
176
176
|
end
|
177
177
|
|
178
|
+
# Get an user's profile of a group.
|
179
|
+
#
|
180
|
+
# @param group_id [String] Group's identifier
|
181
|
+
# @param user_id [String] User's identifier
|
182
|
+
#
|
183
|
+
# @return [Net::HTTPResponse]
|
184
|
+
def get_group_member_profile(group_id, user_id)
|
185
|
+
endpoint_path = "/bot/group/#{group_id}/member/#{user_id}"
|
186
|
+
get(endpoint_path)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Get an user's profile of a room.
|
190
|
+
#
|
191
|
+
# @param room_id [String] Room's identifier
|
192
|
+
# @param user_id [String] User's identifier
|
193
|
+
#
|
194
|
+
# @return [Net::HTTPResponse]
|
195
|
+
def get_room_member_profile(room_id, user_id)
|
196
|
+
endpoint_path = "/bot/room/#{room_id}/member/#{user_id}"
|
197
|
+
get(endpoint_path)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Get user IDs of a group
|
201
|
+
#
|
202
|
+
# @param group_id [String] Group's identifier
|
203
|
+
# @param continuation_token [String] Identifier to return next page
|
204
|
+
# (next property to be included in the response)
|
205
|
+
#
|
206
|
+
# @return [Net::HTTPResponse]
|
207
|
+
def get_group_member_ids(group_id, continuation_token=nil)
|
208
|
+
endpoint_path = "/bot/group/#{group_id}/members/ids"
|
209
|
+
endpoint_path += "?start=#{continuation_token}" if continuation_token
|
210
|
+
get(endpoint_path)
|
211
|
+
end
|
212
|
+
|
213
|
+
# Get user IDs of a room
|
214
|
+
#
|
215
|
+
# @param group_id [String] Room's identifier
|
216
|
+
# @param continuation_token [String] Identifier to return next page
|
217
|
+
# (next property to be included in the response)
|
218
|
+
#
|
219
|
+
# @return [Net::HTTPResponse]
|
220
|
+
def get_room_member_ids(room_id, continuation_token=nil)
|
221
|
+
endpoint_path = "/bot/room/#{room_id}/members/ids"
|
222
|
+
endpoint_path += "?start=#{continuation_token}" if continuation_token
|
223
|
+
get(endpoint_path)
|
224
|
+
end
|
225
|
+
|
178
226
|
# Fetch data, get content of specified URL.
|
179
227
|
#
|
180
228
|
# @param endpoint_path [String]
|
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.2
|
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-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|