line-bot-api 1.27.0 → 1.28.0

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
  SHA256:
3
- metadata.gz: 1589af1dd6d0ad4aa9a5b3e2868edc83b11ab33967a4a489725de67b1909c781
4
- data.tar.gz: 01ee321da5257c341dc289bb8252c2e6fc8f88ee182b36d77df17e3f9c718e37
3
+ metadata.gz: 3d5c002bd9571e6dc16472a7a6fe465aaf52d3c1fa4964637ce195cde0dae426
4
+ data.tar.gz: c3a007fa7ca316560612cfef6f7b97a44e6b9d4bbe203516273f9bae6b40cc7c
5
5
  SHA512:
6
- metadata.gz: fa697e899d359d36c72ce15471746559e5c2968ef548552e5fb2bac0826798c62690a6471377c7be1d237921e532d7e1be8b5712ebd85130b0c499a40239fe23
7
- data.tar.gz: 5f94534088ef554d4e801c60058232dff373ddd4bd6f67c05229ab622d3d7459912fa56b732ebb97b484f75ebcaa36454ee56374077e807fb9ed3f70edb1cb33
6
+ metadata.gz: f0598b48094499f88f6ca3fe3007de5468a578df0a4207c3aa254c2452674fbd93bcbbb866b146cf20c0b7b21fd0701b41709f7671e621cf950196cc8b8ff075
7
+ data.tar.gz: 3a6406575a5cec9a7d9e9f04582d0af9be9a83fb998336fa563d0b95f0720f8a28df34c6d48e529dd51b8cf96101a3ef0fb8adac500f7b638c7e2cf12cc7d831
@@ -15,7 +15,7 @@
15
15
  module Line
16
16
  module Bot
17
17
  module API
18
- VERSION = "1.27.0"
18
+ VERSION = "1.28.0"
19
19
  end
20
20
  end
21
21
  end
@@ -1174,6 +1174,39 @@ module Line
1174
1174
  get(endpoint, endpoint_path, credentials)
1175
1175
  end
1176
1176
 
1177
+ # Send messages to multiple users using phone numbers.
1178
+ #
1179
+ # @param to [Array, String] Array of hashed phone numbers.
1180
+ # @param messages [Hash, Array] Message Objects.
1181
+ # @param headers [Hash] HTTP Headers.
1182
+ # @param payload [Hash] Additional request body.
1183
+ #
1184
+ # @return [Net::HTTPResponse]
1185
+
1186
+ def multicast_by_phone_numbers(to, messages, headers: {}, payload: {})
1187
+ channel_token_required
1188
+
1189
+ to = [to] if to.is_a?(String)
1190
+ messages = [messages] if messages.is_a?(Hash)
1191
+
1192
+ endpoint_path = 'bot/ad/multicast/phone'
1193
+ payload = payload.merge({ to: to, messages: messages }).to_json
1194
+ post(oauth_endpoint, endpoint_path, payload, credentials.merge(headers))
1195
+ end
1196
+
1197
+ # Get the delivery result of the message delivered in Send message using phone number. (`#multicast_by_phone_numbers`)
1198
+ #
1199
+ # @param date [String] Date the message was sent in UTC+9 with `yyyyMMdd` format.
1200
+ #
1201
+ # @return [Net::HTTPResponse]
1202
+
1203
+ def get_delivery_result_sent_by_phone_numbers(date)
1204
+ channel_token_required
1205
+
1206
+ endpoint_path = "/bot/message/delivery/ad_phone?date=#{date}"
1207
+ get(endpoint, endpoint_path, credentials)
1208
+ end
1209
+
1177
1210
  # Fetch data, get content of specified URL.
1178
1211
  #
1179
1212
  # @param endpoint_base [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.27.0
4
+ version: 1.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LINE Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable