line-bot-api 1.2.1 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bc1435114630673967acbcc101d86e26ee6db03
4
- data.tar.gz: 50ef3f306a49db2e6e7ba0d50f93b227de2d94ae
3
+ metadata.gz: 883ff8a42d0bb8c9d6686329df0110986bbd98dd
4
+ data.tar.gz: ea73ff86692858dfb602406fe322263b29939747
5
5
  SHA512:
6
- metadata.gz: 8eb5e83737f0002d813607945e0b603e68d3934f57bed92b1b1783e5782eac5414f7a490a2e6653d7ab63ff2f4afc594aec981c9031f3c6c3e487ff242a9ebac
7
- data.tar.gz: bb22ca0e8e6d85b1c64062df15047e56c1f1493a837e0e5a4bf3d1fbbae4632bf3f099a275a89553a832e7f9b9674f07671461689234ec57c7738507d17eda83
6
+ metadata.gz: 30bd0b9b41bcedfb04436ded6d59e98dfc9a7c980073383193e65718ac4d6c507834ef94456cde68a6eca56ae36ba889ed595faa73639fe8359d6fb6ba703fab
7
+ data.tar.gz: 1e6f4243bd2363cbb4d685297300e5a07fe2139810ef61d177dde9ce25e6f877f90fddb3c7822131634e403ed6751f7b84cd9db8b531f5065114663e87274e43
@@ -15,7 +15,7 @@
15
15
  module Line
16
16
  module Bot
17
17
  module API
18
- VERSION = "1.2.1"
18
+ VERSION = "1.2.2"
19
19
  end
20
20
  end
21
21
  end
@@ -167,7 +167,7 @@ module Line
167
167
 
168
168
  # Get an user's profile.
169
169
  #
170
- # @param user_id [String] User's identifiers
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.1
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-07-20 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake