line-bot-api 1.28.0 → 1.29.1

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
  SHA256:
3
- metadata.gz: 3d5c002bd9571e6dc16472a7a6fe465aaf52d3c1fa4964637ce195cde0dae426
4
- data.tar.gz: c3a007fa7ca316560612cfef6f7b97a44e6b9d4bbe203516273f9bae6b40cc7c
3
+ metadata.gz: 641ac83275cf2fc70b8d0b2607db263772cdea79761a1c06f23c4b01d7551f9c
4
+ data.tar.gz: f315c04b15a28a0a30acf7baa9471298a4c3246177603053c1ddc33aee5d6c52
5
5
  SHA512:
6
- metadata.gz: f0598b48094499f88f6ca3fe3007de5468a578df0a4207c3aa254c2452674fbd93bcbbb866b146cf20c0b7b21fd0701b41709f7671e621cf950196cc8b8ff075
7
- data.tar.gz: 3a6406575a5cec9a7d9e9f04582d0af9be9a83fb998336fa563d0b95f0720f8a28df34c6d48e529dd51b8cf96101a3ef0fb8adac500f7b638c7e2cf12cc7d831
6
+ metadata.gz: f12cae3acc606ff2400b429074e7c2c8cdd683f7cecae27ff87612cde675780a982c1e76c2ce475a821b79e01ae147f870ffa4d8bbb91217d29ce4879ea868d5
7
+ data.tar.gz: 0a7d843950f3d7236b31926417f53449616e362926efb0a0fc3ed4434e99c8c8180281acc86d0733a2c07d27d13ce4acf426ddbf796b2b55a011c21ed4af3806
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # LINE Messaging API SDK for Ruby
2
2
 
3
- [![Gem-version](https://img.shields.io/gem/v/line-bot-api.svg)](https://rubygems.org/gems/line-bot-api) [![Build Status](https://travis-ci.org/line/line-bot-sdk-ruby.svg?branch=master)](https://travis-ci.org/line/line-bot-sdk-ruby)
3
+ [![Gem-version](https://img.shields.io/gem/v/line-bot-api.svg)](https://rubygems.org/gems/line-bot-api)
4
4
 
5
5
 
6
6
  ## Introduction
@@ -17,6 +17,9 @@ Also, generated documentation by YARD is available.
17
17
 
18
18
  - https://rubydoc.info/gems/line-bot-api
19
19
 
20
+ ## Requirements
21
+ This library requires Ruby 3.1 or later.
22
+
20
23
  ## Installation
21
24
 
22
25
  Add this line to your application's Gemfile:
@@ -89,12 +92,8 @@ end
89
92
  ## Help and media
90
93
  FAQ: https://developers.line.biz/en/faq/
91
94
 
92
- Community Q&A: https://www.line-community.me/questions
93
-
94
95
  News: https://developers.line.biz/en/news/
95
96
 
96
- Twitter: @LINE_DEV
97
-
98
97
  ## Versioning
99
98
  This project respects semantic versioning.
100
99
 
@@ -15,7 +15,7 @@
15
15
  module Line
16
16
  module Bot
17
17
  module API
18
- VERSION = "1.28.0"
18
+ VERSION = "1.29.1"
19
19
  end
20
20
  end
21
21
  end
@@ -1207,6 +1207,36 @@ module Line
1207
1207
  get(endpoint, endpoint_path, credentials)
1208
1208
  end
1209
1209
 
1210
+ # Send a LINE notification message by specifying the user's phone number.
1211
+ #
1212
+ # @param hashed_phone_number [String] Phone number that has been normalized.
1213
+ # @param messages [Hash, Array] Message Objects.
1214
+ # @param headers [Hash] HTTP Headers.
1215
+ # @param payload [Hash] Additional request body.
1216
+ #
1217
+ # @return [Net::HTTPResponse]
1218
+ def push_pnp(hashed_phone_number, messages, headers: {}, payload: {})
1219
+ channel_token_required
1220
+
1221
+ messages = [messages] if messages.is_a?(Hash)
1222
+
1223
+ endpoint_path = '/bot/pnp/push'
1224
+ payload = payload.merge({ to: hashed_phone_number, messages: messages }).to_json
1225
+ post(oauth_endpoint, endpoint_path, payload, credentials.merge(headers))
1226
+ end
1227
+
1228
+ # Get the number of LINE notification messages sent using the /bot/pnp/push endpoint.
1229
+ #
1230
+ # @param date [String] Date the messages were sent (format: yyyyMMdd).
1231
+ #
1232
+ # @return [Net::HTTPResponse]
1233
+ def get_message_delivery_pnp(date)
1234
+ channel_token_required
1235
+
1236
+ endpoint_path = "/bot/message/delivery/pnp?date=#{date}"
1237
+ get(endpoint, endpoint_path, credentials)
1238
+ end
1239
+
1210
1240
  # Fetch data, get content of specified URL.
1211
1241
  #
1212
1242
  # @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.28.0
4
+ version: 1.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - LINE Corporation
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -106,7 +106,7 @@ homepage: https://github.com/line/line-bot-sdk-ruby
106
106
  licenses:
107
107
  - Apache-2.0
108
108
  metadata: {}
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.3.3
125
- signing_key:
124
+ rubygems_version: 3.5.22
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: SDK of the LINE Messaging API
128
128
  test_files: []