line-bot-api 2.6.1 → 2.7.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3acf96654a14ee4debeb4eb0c765e1b37ae8528dd885ac089a2622022334478
|
|
4
|
+
data.tar.gz: 0666c4e49938d1de7c635da1b88928acf60b071c60781840eea5ec2803989ffa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86874a817aa198297c3a0d6c9d8b9cafb0bf9d9005c18e438bc28aeccb6cbcd5dbaba768d7d587a346fac414dbaffbb790626cbb7a928156fb4b1f0c3d9932af
|
|
7
|
+
data.tar.gz: bed15858b6124bbaab49eea34be519cc5e25041e6e220882cd3634a6d80649c7240bff91fb46c7d3675292d415ffa52ba7440859d68d7967be6ae99268fb1583
|
|
@@ -237,6 +237,10 @@ module Line
|
|
|
237
237
|
response_body
|
|
238
238
|
end
|
|
239
239
|
|
|
240
|
+
# @deprecated
|
|
241
|
+
# This is deprecated.
|
|
242
|
+
# Please use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} or {#issue_stateless_channel_token_by_client_secret_with_http_info} instead.
|
|
243
|
+
#
|
|
240
244
|
# Issues a new stateless channel access token, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
241
245
|
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
242
246
|
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
@@ -284,6 +288,10 @@ module Line
|
|
|
284
288
|
end
|
|
285
289
|
end
|
|
286
290
|
|
|
291
|
+
# @deprecated
|
|
292
|
+
# This is deprecated.
|
|
293
|
+
# Please use {#issue_stateless_channel_token_by_jwt_assertion} or {#issue_stateless_channel_token_by_client_secret} instead.
|
|
294
|
+
#
|
|
287
295
|
# Issues a new stateless channel access token, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
288
296
|
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
289
297
|
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_with_http_info} instead of this.
|
|
@@ -303,7 +311,7 @@ module Line
|
|
|
303
311
|
client_id: nil,
|
|
304
312
|
client_secret: nil
|
|
305
313
|
)
|
|
306
|
-
response_body, _status_code, _headers = issue_stateless_channel_token_with_http_info(
|
|
314
|
+
response_body, _status_code, _headers = issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference
|
|
307
315
|
grant_type: grant_type,
|
|
308
316
|
client_assertion_type: client_assertion_type,
|
|
309
317
|
client_assertion: client_assertion,
|
|
@@ -526,6 +534,87 @@ module Line
|
|
|
526
534
|
|
|
527
535
|
response_body
|
|
528
536
|
end
|
|
537
|
+
|
|
538
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
539
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
540
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
541
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} instead of this.
|
|
542
|
+
#
|
|
543
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
544
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
545
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
546
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
547
|
+
def issue_stateless_channel_token_by_jwt_assertion(
|
|
548
|
+
client_assertion:
|
|
549
|
+
)
|
|
550
|
+
issue_stateless_channel_token( # steep:ignore DeprecatedReference
|
|
551
|
+
grant_type: 'client_credentials',
|
|
552
|
+
client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
|
|
553
|
+
client_assertion: client_assertion
|
|
554
|
+
)
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
558
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
559
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
560
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_client_secret_with_http_info} instead of this.
|
|
561
|
+
#
|
|
562
|
+
# @param client_id [String] Channel ID.
|
|
563
|
+
# @param client_secret [String] Channel secret.
|
|
564
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
565
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
566
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
567
|
+
def issue_stateless_channel_token_by_client_secret(
|
|
568
|
+
client_id:,
|
|
569
|
+
client_secret:
|
|
570
|
+
)
|
|
571
|
+
issue_stateless_channel_token( # steep:ignore DeprecatedReference
|
|
572
|
+
grant_type: 'client_credentials',
|
|
573
|
+
client_id: client_id,
|
|
574
|
+
client_secret: client_secret
|
|
575
|
+
)
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
579
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
580
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
581
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
582
|
+
#
|
|
583
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
584
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
585
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
586
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
587
|
+
def issue_stateless_channel_token_by_jwt_assertion_with_http_info(
|
|
588
|
+
client_assertion:
|
|
589
|
+
)
|
|
590
|
+
issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference
|
|
591
|
+
grant_type: 'client_credentials',
|
|
592
|
+
client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
|
|
593
|
+
client_assertion: client_assertion
|
|
594
|
+
)
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
598
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
599
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
600
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
601
|
+
#
|
|
602
|
+
# @param client_id [String] Channel ID.
|
|
603
|
+
# @param client_secret [String] Channel secret.
|
|
604
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
605
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
606
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
607
|
+
def issue_stateless_channel_token_by_client_secret_with_http_info(
|
|
608
|
+
client_id:,
|
|
609
|
+
client_secret:
|
|
610
|
+
)
|
|
611
|
+
issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference
|
|
612
|
+
grant_type: 'client_credentials',
|
|
613
|
+
client_id: client_id,
|
|
614
|
+
client_secret: client_secret
|
|
615
|
+
)
|
|
616
|
+
end
|
|
617
|
+
|
|
529
618
|
end
|
|
530
619
|
end
|
|
531
620
|
end
|
data/lib/line/bot/version.rb
CHANGED
|
@@ -159,6 +159,7 @@ module Line
|
|
|
159
159
|
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
160
160
|
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
161
161
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
162
|
+
%a{deprecated: Use #issue_stateless_channel_token_by_jwt_assertion_with_http_info or #issue_stateless_channel_token_by_client_secret_with_http_info instead}
|
|
162
163
|
def issue_stateless_channel_token_with_http_info: (
|
|
163
164
|
?grant_type: String?,
|
|
164
165
|
?client_assertion_type: String?,
|
|
@@ -182,6 +183,7 @@ module Line
|
|
|
182
183
|
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
183
184
|
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
184
185
|
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
186
|
+
%a{deprecated: Use #issue_stateless_channel_token_by_jwt_assertion or #issue_stateless_channel_token_by_client_secret instead}
|
|
185
187
|
def issue_stateless_channel_token: (
|
|
186
188
|
?grant_type: String?,
|
|
187
189
|
?client_assertion_type: String?,
|
|
@@ -320,6 +322,75 @@ module Line
|
|
|
320
322
|
VerifyChannelAccessTokenResponse # when HTTP status code is 200
|
|
321
323
|
| String? # otherwise
|
|
322
324
|
)
|
|
325
|
+
|
|
326
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
327
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
328
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
329
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} instead of this.
|
|
330
|
+
#
|
|
331
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
332
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
333
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
334
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
335
|
+
def issue_stateless_channel_token_by_jwt_assertion: (
|
|
336
|
+
client_assertion: String
|
|
337
|
+
) -> (
|
|
338
|
+
IssueStatelessChannelAccessTokenResponse # when HTTP status code is 200
|
|
339
|
+
| String? # otherwise
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
343
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
344
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
345
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_client_secret_with_http_info} instead of this.
|
|
346
|
+
#
|
|
347
|
+
# @param client_id [String] Channel ID.
|
|
348
|
+
# @param client_secret [String] Channel secret.
|
|
349
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
350
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
351
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
352
|
+
def issue_stateless_channel_token_by_client_secret: (
|
|
353
|
+
client_id: String,
|
|
354
|
+
client_secret: String
|
|
355
|
+
) -> (
|
|
356
|
+
IssueStatelessChannelAccessTokenResponse # when HTTP status code is 200
|
|
357
|
+
| String? # otherwise
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
361
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
362
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
363
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
364
|
+
#
|
|
365
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
366
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
367
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
368
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
369
|
+
def issue_stateless_channel_token_by_jwt_assertion_with_http_info: (
|
|
370
|
+
client_assertion: String
|
|
371
|
+
) -> (
|
|
372
|
+
[IssueStatelessChannelAccessTokenResponse, 200, Hash[untyped, untyped]] # when HTTP status code is 200
|
|
373
|
+
| [String?, Integer, Hash[untyped, untyped]] # otherwise
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
377
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
378
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
379
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
380
|
+
#
|
|
381
|
+
# @param client_id [String] Channel ID.
|
|
382
|
+
# @param client_secret [String] Channel secret.
|
|
383
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
384
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
385
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
386
|
+
def issue_stateless_channel_token_by_client_secret_with_http_info: (
|
|
387
|
+
client_id: String,
|
|
388
|
+
client_secret: String
|
|
389
|
+
) -> (
|
|
390
|
+
[IssueStatelessChannelAccessTokenResponse, 200, Hash[untyped, untyped]] # when HTTP status code is 200
|
|
391
|
+
| [String?, Integer, Hash[untyped, untyped]] # otherwise
|
|
392
|
+
)
|
|
393
|
+
|
|
323
394
|
end
|
|
324
395
|
end
|
|
325
396
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: line-bot-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LINE Corporation
|
|
@@ -760,7 +760,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
760
760
|
- !ruby/object:Gem::Version
|
|
761
761
|
version: '0'
|
|
762
762
|
requirements: []
|
|
763
|
-
rubygems_version:
|
|
763
|
+
rubygems_version: 4.0.6
|
|
764
764
|
specification_version: 4
|
|
765
765
|
summary: SDK of the LINE Messaging API for Ruby
|
|
766
766
|
test_files: []
|